{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import backtrader as bt\n",
    "import pandas as pd\n",
    "import numpy as np\n",
    "import datetime\n",
    "from copy import deepcopy"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 一、读取日度行情表\n",
    "\n",
    "表内字段就是 Backtrader 默认情况下要求输入的 7 个字段： 'datetime' 、'open'、'high'、'low'、'close'、'volume'、'openinterest'，外加一个 'sec_code' 股票代码字段。"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>datetime</th>\n",
       "      <th>sec_code</th>\n",
       "      <th>open</th>\n",
       "      <th>high</th>\n",
       "      <th>low</th>\n",
       "      <th>close</th>\n",
       "      <th>volume</th>\n",
       "      <th>openinterest</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>2019-01-02</td>\n",
       "      <td>600466.SH</td>\n",
       "      <td>33.064891</td>\n",
       "      <td>33.496709</td>\n",
       "      <td>31.954503</td>\n",
       "      <td>32.386321</td>\n",
       "      <td>10629352</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2019-01-02</td>\n",
       "      <td>603228.SH</td>\n",
       "      <td>50.660230</td>\n",
       "      <td>51.458513</td>\n",
       "      <td>50.394136</td>\n",
       "      <td>51.120778</td>\n",
       "      <td>426147</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>2019-01-02</td>\n",
       "      <td>600315.SH</td>\n",
       "      <td>148.258423</td>\n",
       "      <td>150.480132</td>\n",
       "      <td>148.258423</td>\n",
       "      <td>149.558935</td>\n",
       "      <td>2138556</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>2019-01-02</td>\n",
       "      <td>000750.SZ</td>\n",
       "      <td>49.512579</td>\n",
       "      <td>53.154883</td>\n",
       "      <td>48.715825</td>\n",
       "      <td>51.561375</td>\n",
       "      <td>227557612</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>2019-01-02</td>\n",
       "      <td>002588.SZ</td>\n",
       "      <td>36.608672</td>\n",
       "      <td>36.608672</td>\n",
       "      <td>35.669988</td>\n",
       "      <td>35.763857</td>\n",
       "      <td>2841517</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>255967</th>\n",
       "      <td>2021-01-28</td>\n",
       "      <td>600717.SH</td>\n",
       "      <td>121.489201</td>\n",
       "      <td>122.011736</td>\n",
       "      <td>120.705400</td>\n",
       "      <td>120.966667</td>\n",
       "      <td>6022213</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>255968</th>\n",
       "      <td>2021-01-28</td>\n",
       "      <td>300558.SZ</td>\n",
       "      <td>134.155888</td>\n",
       "      <td>137.600704</td>\n",
       "      <td>130.700970</td>\n",
       "      <td>131.569750</td>\n",
       "      <td>5330301</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>255969</th>\n",
       "      <td>2021-01-28</td>\n",
       "      <td>600171.SH</td>\n",
       "      <td>39.774873</td>\n",
       "      <td>39.830040</td>\n",
       "      <td>38.864630</td>\n",
       "      <td>38.947380</td>\n",
       "      <td>12354183</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>255970</th>\n",
       "      <td>2021-01-28</td>\n",
       "      <td>600597.SH</td>\n",
       "      <td>47.190201</td>\n",
       "      <td>49.243025</td>\n",
       "      <td>46.250355</td>\n",
       "      <td>46.423484</td>\n",
       "      <td>32409940</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>255971</th>\n",
       "      <td>2021-01-28</td>\n",
       "      <td>600584.SH</td>\n",
       "      <td>204.725839</td>\n",
       "      <td>210.226650</td>\n",
       "      <td>199.225028</td>\n",
       "      <td>199.799026</td>\n",
       "      <td>68831481</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>255972 rows × 8 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "         datetime   sec_code        open        high         low       close  \\\n",
       "0      2019-01-02  600466.SH   33.064891   33.496709   31.954503   32.386321   \n",
       "1      2019-01-02  603228.SH   50.660230   51.458513   50.394136   51.120778   \n",
       "2      2019-01-02  600315.SH  148.258423  150.480132  148.258423  149.558935   \n",
       "3      2019-01-02  000750.SZ   49.512579   53.154883   48.715825   51.561375   \n",
       "4      2019-01-02  002588.SZ   36.608672   36.608672   35.669988   35.763857   \n",
       "...           ...        ...         ...         ...         ...         ...   \n",
       "255967 2021-01-28  600717.SH  121.489201  122.011736  120.705400  120.966667   \n",
       "255968 2021-01-28  300558.SZ  134.155888  137.600704  130.700970  131.569750   \n",
       "255969 2021-01-28  600171.SH   39.774873   39.830040   38.864630   38.947380   \n",
       "255970 2021-01-28  600597.SH   47.190201   49.243025   46.250355   46.423484   \n",
       "255971 2021-01-28  600584.SH  204.725839  210.226650  199.225028  199.799026   \n",
       "\n",
       "           volume  openinterest  \n",
       "0        10629352             0  \n",
       "1          426147             0  \n",
       "2         2138556             0  \n",
       "3       227557612             0  \n",
       "4         2841517             0  \n",
       "...           ...           ...  \n",
       "255967    6022213             0  \n",
       "255968    5330301             0  \n",
       "255969   12354183             0  \n",
       "255970   32409940             0  \n",
       "255971   68831481             0  \n",
       "\n",
       "[255972 rows x 8 columns]"
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "daily_price = pd.read_csv(\"./data/daily_price.csv\", parse_dates=['datetime'])\n",
    "daily_price"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>open</th>\n",
       "      <th>high</th>\n",
       "      <th>low</th>\n",
       "      <th>close</th>\n",
       "      <th>volume</th>\n",
       "      <th>openinterest</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>datetime</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2019-01-02</th>\n",
       "      <td>50.660230</td>\n",
       "      <td>51.458513</td>\n",
       "      <td>50.394136</td>\n",
       "      <td>51.120778</td>\n",
       "      <td>426147</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-01-03</th>\n",
       "      <td>50.609059</td>\n",
       "      <td>51.049137</td>\n",
       "      <td>50.107573</td>\n",
       "      <td>50.639762</td>\n",
       "      <td>492071</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-01-04</th>\n",
       "      <td>50.199683</td>\n",
       "      <td>51.171950</td>\n",
       "      <td>49.278588</td>\n",
       "      <td>50.455543</td>\n",
       "      <td>665486</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-01-07</th>\n",
       "      <td>50.864918</td>\n",
       "      <td>51.417575</td>\n",
       "      <td>50.353199</td>\n",
       "      <td>50.967262</td>\n",
       "      <td>689444</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-01-08</th>\n",
       "      <td>51.110544</td>\n",
       "      <td>52.174920</td>\n",
       "      <td>50.250855</td>\n",
       "      <td>50.527183</td>\n",
       "      <td>931211</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2021-01-22</th>\n",
       "      <td>59.955312</td>\n",
       "      <td>59.955312</td>\n",
       "      <td>57.478496</td>\n",
       "      <td>58.174461</td>\n",
       "      <td>6410959</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2021-01-25</th>\n",
       "      <td>58.113052</td>\n",
       "      <td>58.133522</td>\n",
       "      <td>57.110044</td>\n",
       "      <td>57.498966</td>\n",
       "      <td>3445027</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2021-01-26</th>\n",
       "      <td>57.498966</td>\n",
       "      <td>57.498966</td>\n",
       "      <td>54.305716</td>\n",
       "      <td>55.124498</td>\n",
       "      <td>7340180</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2021-01-27</th>\n",
       "      <td>55.595298</td>\n",
       "      <td>55.943280</td>\n",
       "      <td>54.960742</td>\n",
       "      <td>55.595298</td>\n",
       "      <td>2665407</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2021-01-28</th>\n",
       "      <td>55.206376</td>\n",
       "      <td>55.840932</td>\n",
       "      <td>54.612759</td>\n",
       "      <td>54.919803</td>\n",
       "      <td>2372181</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>506 rows × 6 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                 open       high        low      close   volume  openinterest\n",
       "datetime                                                                     \n",
       "2019-01-02  50.660230  51.458513  50.394136  51.120778   426147             0\n",
       "2019-01-03  50.609059  51.049137  50.107573  50.639762   492071             0\n",
       "2019-01-04  50.199683  51.171950  49.278588  50.455543   665486             0\n",
       "2019-01-07  50.864918  51.417575  50.353199  50.967262   689444             0\n",
       "2019-01-08  51.110544  52.174920  50.250855  50.527183   931211             0\n",
       "...               ...        ...        ...        ...      ...           ...\n",
       "2021-01-22  59.955312  59.955312  57.478496  58.174461  6410959             0\n",
       "2021-01-25  58.113052  58.133522  57.110044  57.498966  3445027             0\n",
       "2021-01-26  57.498966  57.498966  54.305716  55.124498  7340180             0\n",
       "2021-01-27  55.595298  55.943280  54.960742  55.595298  2665407             0\n",
       "2021-01-28  55.206376  55.840932  54.612759  54.919803  2372181             0\n",
       "\n",
       "[506 rows x 6 columns]"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 筛选 600466.SH 和 603228.SH 2只股票的数据集\n",
    "data1 = daily_price.query(f\"sec_code=='600466.SH'\").set_index('datetime').drop(columns=['sec_code'])\n",
    "data2 = daily_price.query(f\"sec_code=='603228.SH'\").set_index('datetime').drop(columns=['sec_code'])\n",
    "data2"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 一、 简单移动均线的测试案例\n",
    "\n",
    "策略：5 日均线上穿 10 日均线 → 买入；5 日均线下穿 10 日均线 → 卖出\n",
    "\n",
    "### 注：后面各交易操作都基于该案例进行测试"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 124,
   "metadata": {
    "collapsed": true,
    "jupyter": {
     "outputs_hidden": true
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2019-01-17, BUY EXECUTED, ref:3689，Price: 32.6331, Size: 100.00, Cost: 3263.3074, Comm 0.0000, Stock: 600466.SH\n",
      "2019-01-29, SELL EXECUTED, ref:3690, Price: 33.9285, Size: -100.00, Cost: 3263.3074, Comm 0.0000, Stock: 600466.SH\n",
      "2019-02-22, BUY EXECUTED, ref:3691，Price: 34.9155, Size: 100.00, Cost: 3491.5538, Comm 0.0000, Stock: 600466.SH\n",
      "2019-02-27, SELL EXECUTED, ref:3692, Price: 37.5064, Size: -100.00, Cost: 3491.5538, Comm 0.0000, Stock: 600466.SH\n",
      "2019-03-15, BUY EXECUTED, ref:3693，Price: 41.2077, Size: 100.00, Cost: 4120.7738, Comm 0.0000, Stock: 600466.SH\n",
      "2019-03-18, SELL EXECUTED, ref:3694, Price: 44.1071, Size: -100.00, Cost: 4120.7738, Comm 0.0000, Stock: 600466.SH\n",
      "2019-04-01, BUY EXECUTED, ref:3695，Price: 46.1428, Size: 100.00, Cost: 4614.2796, Comm 0.0000, Stock: 600466.SH\n",
      "2019-04-03, SELL EXECUTED, ref:3696, Price: 47.0681, Size: -100.00, Cost: 4614.2796, Comm 0.0000, Stock: 600466.SH\n",
      "2019-04-17, BUY EXECUTED, ref:3697，Price: 46.6363, Size: 100.00, Cost: 4663.6302, Comm 0.0000, Stock: 600466.SH\n",
      "2019-05-20, SELL EXECUTED, ref:3698, Price: 39.7735, Size: -100.00, Cost: 4663.6302, Comm 0.0000, Stock: 600466.SH\n",
      "2019-05-21, BUY EXECUTED, ref:3699，Price: 39.2595, Size: 100.00, Cost: 3925.9475, Comm 0.0000, Stock: 600466.SH\n",
      "2019-06-13, SELL EXECUTED, ref:3700, Price: 40.0948, Size: -100.00, Cost: 3925.9475, Comm 0.0000, Stock: 600466.SH\n",
      "2019-07-02, BUY EXECUTED, ref:3701，Price: 40.4803, Size: 100.00, Cost: 4048.0310, Comm 0.0000, Stock: 600466.SH\n",
      "2019-07-08, SELL EXECUTED, ref:3702, Price: 40.9301, Size: -100.00, Cost: 4048.0310, Comm 0.0000, Stock: 600466.SH\n",
      "2019-07-11, BUY EXECUTED, ref:3703，Price: 38.4884, Size: 100.00, Cost: 3848.8422, Comm 0.0000, Stock: 600466.SH\n",
      "2019-07-18, SELL EXECUTED, ref:3704, Price: 41.1871, Size: -100.00, Cost: 3848.8422, Comm 0.0000, Stock: 600466.SH\n",
      "2019-07-29, BUY EXECUTED, ref:3705，Price: 41.2514, Size: 100.00, Cost: 4125.1363, Comm 0.0000, Stock: 600466.SH\n",
      "2019-08-21, SELL EXECUTED, ref:3706, Price: 37.8459, Size: -100.00, Cost: 4125.1363, Comm 0.0000, Stock: 600466.SH\n",
      "2019-09-02, BUY EXECUTED, ref:3707，Price: 36.6893, Size: 100.00, Cost: 3668.9297, Comm 0.0000, Stock: 600466.SH\n",
      "2019-09-10, SELL EXECUTED, ref:3708, Price: 39.5807, Size: -100.00, Cost: 3668.9297, Comm 0.0000, Stock: 600466.SH\n",
      "2019-09-26, BUY EXECUTED, ref:3709，Price: 39.5807, Size: 100.00, Cost: 3958.0747, Comm 0.0000, Stock: 600466.SH\n",
      "2019-10-11, SELL EXECUTED, ref:3710, Price: 43.0505, Size: -100.00, Cost: 3958.0747, Comm 0.0000, Stock: 600466.SH\n",
      "2019-10-24, BUY EXECUTED, ref:3711，Price: 41.3799, Size: 100.00, Cost: 4137.9872, Comm 0.0000, Stock: 600466.SH\n",
      "2019-11-07, SELL EXECUTED, ref:3712, Price: 42.2152, Size: -100.00, Cost: 4137.9872, Comm 0.0000, Stock: 600466.SH\n",
      "2019-11-13, BUY EXECUTED, ref:3713，Price: 40.9943, Size: 100.00, Cost: 4099.4345, Comm 0.0000, Stock: 600466.SH\n",
      "2019-11-21, SELL EXECUTED, ref:3714, Price: 42.7935, Size: -100.00, Cost: 4099.4345, Comm 0.0000, Stock: 600466.SH\n",
      "2019-12-03, BUY EXECUTED, ref:3715，Price: 43.6930, Size: 100.00, Cost: 4369.3033, Comm 0.0000, Stock: 600466.SH\n",
      "2019-12-04, SELL EXECUTED, ref:3716, Price: 44.0143, Size: -100.00, Cost: 4369.3033, Comm 0.0000, Stock: 600466.SH\n",
      "2019-12-27, BUY EXECUTED, ref:3717，Price: 45.4922, Size: 100.00, Cost: 4549.2158, Comm 0.0000, Stock: 600466.SH\n",
      "2020-01-02, SELL EXECUTED, ref:3718, Price: 48.0623, Size: -100.00, Cost: 4549.2158, Comm 0.0000, Stock: 600466.SH\n",
      "2020-01-20, BUY EXECUTED, ref:3719，Price: 47.0985, Size: 100.00, Cost: 4709.8519, Comm 0.0000, Stock: 600466.SH\n",
      "2020-02-14, SELL EXECUTED, ref:3720, Price: 44.2713, Size: -100.00, Cost: 4709.8519, Comm 0.0000, Stock: 600466.SH\n",
      "2020-02-25, BUY EXECUTED, ref:3721，Price: 41.6369, Size: 100.00, Cost: 4163.6890, Comm 0.0000, Stock: 600466.SH\n",
      "2020-03-05, SELL EXECUTED, ref:3722, Price: 45.3636, Size: -100.00, Cost: 4163.6890, Comm 0.0000, Stock: 600466.SH\n",
      "2020-03-12, BUY EXECUTED, ref:3723，Price: 42.7935, Size: 100.00, Cost: 4279.3470, Comm 0.0000, Stock: 600466.SH\n",
      "2020-03-31, SELL EXECUTED, ref:3724, Price: 40.1590, Size: -100.00, Cost: 4279.3470, Comm 0.0000, Stock: 600466.SH\n",
      "2020-04-08, BUY EXECUTED, ref:3725，Price: 39.2595, Size: 100.00, Cost: 3925.9475, Comm 0.0000, Stock: 600466.SH\n",
      "2020-04-13, SELL EXECUTED, ref:3726, Price: 39.4522, Size: -100.00, Cost: 3925.9475, Comm 0.0000, Stock: 600466.SH\n",
      "2020-04-21, BUY EXECUTED, ref:3727，Price: 37.9101, Size: 100.00, Cost: 3791.0131, Comm 0.0000, Stock: 600466.SH\n",
      "2020-05-12, SELL EXECUTED, ref:3728, Price: 35.9825, Size: -100.00, Cost: 3791.0131, Comm 0.0000, Stock: 600466.SH\n",
      "2020-05-13, BUY EXECUTED, ref:3729，Price: 35.2114, Size: 100.00, Cost: 3521.1444, Comm 0.0000, Stock: 600466.SH\n",
      "2020-06-03, SELL EXECUTED, ref:3730, Price: 34.3119, Size: -100.00, Cost: 3521.1444, Comm 0.0000, Stock: 600466.SH\n",
      "2020-06-12, BUY EXECUTED, ref:3731，Price: 32.2557, Size: 100.00, Cost: 3225.5739, Comm 0.0000, Stock: 600466.SH\n",
      "2020-06-22, SELL EXECUTED, ref:3732, Price: 34.6332, Size: -100.00, Cost: 3225.5739, Comm 0.0000, Stock: 600466.SH\n",
      "2020-07-16, BUY EXECUTED, ref:3733，Price: 38.7520, Size: 100.00, Cost: 3875.1957, Comm 0.0000, Stock: 600466.SH\n",
      "2020-08-06, SELL EXECUTED, ref:3734, Price: 36.4565, Size: -100.00, Cost: 3875.1957, Comm 0.0000, Stock: 600466.SH\n",
      "2020-08-12, BUY EXECUTED, ref:3735，Price: 35.7814, Size: 100.00, Cost: 3578.1424, Comm 0.0000, Stock: 600466.SH\n",
      "2020-08-18, SELL EXECUTED, ref:3736, Price: 37.6718, Size: -100.00, Cost: 3578.1424, Comm 0.0000, Stock: 600466.SH\n",
      "2020-08-26, BUY EXECUTED, ref:3737，Price: 36.3215, Size: 100.00, Cost: 3632.1521, Comm 0.0000, Stock: 600466.SH\n",
      "2020-09-03, SELL EXECUTED, ref:3738, Price: 36.8616, Size: -100.00, Cost: 3632.1521, Comm 0.0000, Stock: 600466.SH\n",
      "2020-09-09, BUY EXECUTED, ref:3739，Price: 35.7139, Size: 100.00, Cost: 3571.3911, Comm 0.0000, Stock: 600466.SH\n",
      "2020-09-16, SELL EXECUTED, ref:3740, Price: 36.3890, Size: -100.00, Cost: 3571.3911, Comm 0.0000, Stock: 600466.SH\n",
      "2020-09-28, BUY EXECUTED, ref:3741，Price: 34.6337, Size: 100.00, Cost: 3463.3718, Comm 0.0000, Stock: 600466.SH\n",
      "2020-10-16, SELL EXECUTED, ref:3742, Price: 34.4987, Size: -100.00, Cost: 3463.3718, Comm 0.0000, Stock: 600466.SH\n",
      "2020-10-21, BUY EXECUTED, ref:3743，Price: 34.2962, Size: 100.00, Cost: 3429.6157, Comm 0.0000, Stock: 600466.SH\n",
      "2020-11-09, SELL EXECUTED, ref:3744, Price: 34.2286, Size: -100.00, Cost: 3429.6157, Comm 0.0000, Stock: 600466.SH\n",
      "2020-12-01, BUY EXECUTED, ref:3745，Price: 34.8363, Size: 100.00, Cost: 3483.6254, Comm 0.0000, Stock: 600466.SH\n",
      "2020-12-02, SELL EXECUTED, ref:3746, Price: 35.1063, Size: -100.00, Cost: 3483.6254, Comm 0.0000, Stock: 600466.SH\n",
      "2020-12-07, BUY EXECUTED, ref:3747，Price: 34.2962, Size: 100.00, Cost: 3429.6157, Comm 0.0000, Stock: 600466.SH\n",
      "2021-01-18, SELL EXECUTED, ref:3748, Price: 30.3805, Size: -100.00, Cost: 3429.6157, Comm 0.0000, Stock: 600466.SH\n",
      "2021-01-26, BUY EXECUTED, ref:3749，Price: 28.9627, Size: 100.00, Cost: 2896.2699, Comm 0.0000, Stock: 600466.SH\n"
     ]
    }
   ],
   "source": [
    "class TestStrategy(bt.Strategy):\n",
    "  \n",
    "    params=(('period1',5),\n",
    "            ('period2',10),)   #全局设定均线周期\n",
    "    \n",
    "    def log(self, txt, dt=None):\n",
    "        ''' Logging function fot this strategy'''\n",
    "        dt = dt or self.datas[0].datetime.date(0)\n",
    "        print('%s, %s' % (dt.isoformat(), txt))\n",
    "    \n",
    "    def __init__(self):\n",
    "        #计算均线\n",
    "        self.ma1 = bt.indicators.SMA(self.data0, period=self.p.period1)\n",
    "        self.ma2 = bt.indicators.SMA(self.data0, period=self.p.period2)\n",
    "        #计算2条均线交叉信号：ma2 上穿 ma1 时，取值为 +1； ma2 下穿 ma1 时，取值为 -1\n",
    "        self.crossover = bt.indicators.CrossOver(self.ma2, self.ma1) \n",
    "        # 初始化订单\n",
    "        self.order = None\n",
    "        \n",
    "    def next(self):\n",
    "        \n",
    "        # 取消之前未执行的订单\n",
    "        if self.order:  \n",
    "            self.cancel(self.order)  \n",
    "        \n",
    "        # 检查是否有持仓\n",
    "        if not self.position:  \n",
    "            # 10日均线上穿5日均线，买入\n",
    "            if self.crossover > 0:             \n",
    "                self.order = self.buy(size=100) # 以下一日开盘价买入100股\n",
    "        # # 10日均线下穿5日均线，卖出\n",
    "        elif self.crossover < 0:            \n",
    "            self.order = self.close() # 平仓，以下一日开盘价卖出\n",
    "            \n",
    "    \n",
    "    def notify_order(self, order):\n",
    "        # 未被处理的订单\n",
    "        if order.status in [order.Submitted, order.Accepted]:\n",
    "            return\n",
    "        # 已被处理的订单\n",
    "        if order.status in [order.Completed, order.Canceled, order.Margin]:\n",
    "            if order.isbuy():\n",
    "                self.log(\n",
    "                    'BUY EXECUTED, ref:%.0f，Price: %.4f, Size: %.2f, Cost: %.4f, Comm %.4f, Stock: %s' %\n",
    "                    (order.ref,\n",
    "                     order.executed.price,\n",
    "                     order.executed.size,\n",
    "                     order.executed.value,\n",
    "                     order.executed.comm,\n",
    "                     order.data._name))\n",
    "            else:  # Sell\n",
    "                self.log('SELL EXECUTED, ref:%.0f, Price: %.4f, Size: %.2f, Cost: %.4f, Comm %.4f, Stock: %s' %\n",
    "                        (order.ref,\n",
    "                        order.executed.price,\n",
    "                         order.executed.size,\n",
    "                        order.executed.value,\n",
    "                        order.executed.comm,\n",
    "                        order.data._name))\n",
    "                \n",
    "        \n",
    "# 实例化大脑\n",
    "cerebro1= bt.Cerebro()\n",
    "# 设置初始资金\n",
    "cerebro1.broker.set_cash(1000000000000)\n",
    "# 加载数据\n",
    "datafeed1 = bt.feeds.PandasData(dataname=data1, fromdate=datetime.datetime(2019,1,2), todate=datetime.datetime(2021,1,28))\n",
    "cerebro1.adddata(datafeed1, name='600466.SH')\n",
    "# 添加策略\n",
    "cerebro1.addstrategy(TestStrategy)            \n",
    "# 启动回测\n",
    "result = cerebro1.run()  "
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 二、 打印资金和持仓"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 126,
   "metadata": {
    "collapsed": true,
    "jupyter": {
     "outputs_hidden": true
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "date 2019-01-16\n",
      "当前可用资金 1000000000000.0\n",
      "当前总资产 1000000000000.0\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-01-17, BUY EXECUTED, ref:3811，Price: 32.6331, Size: 100.00, Cost: 3263.3074, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-01-17\n",
      "当前可用资金 999999996736.6926\n",
      "当前总资产 999999999944.4806\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.63307367\n",
      "date 2019-01-18\n",
      "当前可用资金 999999996736.6926\n",
      "当前总资产 1000000000012.3376\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.63307367\n",
      "date 2019-01-21\n",
      "当前可用资金 999999996736.6926\n",
      "当前总资产 999999999981.4935\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.63307367\n",
      "date 2019-01-22\n",
      "当前可用资金 999999996736.6926\n",
      "当前总资产 999999999981.4935\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.63307367\n",
      "date 2019-01-23\n",
      "当前可用资金 999999996736.6926\n",
      "当前总资产 999999999987.6624\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.63307367\n",
      "date 2019-01-24\n",
      "当前可用资金 999999996736.6926\n",
      "当前总资产 999999999975.3247\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.63307367\n",
      "date 2019-01-25\n",
      "当前可用资金 999999996736.6926\n",
      "当前总资产 1000000000043.1818\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.63307367\n",
      "date 2019-01-28\n",
      "当前可用资金 999999996736.6926\n",
      "当前总资产 1000000000123.3765\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.63307367\n",
      "2019-01-29, SELL EXECUTED, ref:3812, Price: 33.9285, Size: -100.00, Cost: 3263.3074, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-01-29\n",
      "当前可用资金 1000000000129.5453\n",
      "当前总资产 1000000000129.5453\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-01-30\n",
      "当前可用资金 1000000000129.5453\n",
      "当前总资产 1000000000129.5453\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-01-31\n",
      "当前可用资金 1000000000129.5453\n",
      "当前总资产 1000000000129.5453\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-02-01\n",
      "当前可用资金 1000000000129.5453\n",
      "当前总资产 1000000000129.5453\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-02-11\n",
      "当前可用资金 1000000000129.5453\n",
      "当前总资产 1000000000129.5453\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-02-12\n",
      "当前可用资金 1000000000129.5453\n",
      "当前总资产 1000000000129.5453\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-02-13\n",
      "当前可用资金 1000000000129.5453\n",
      "当前总资产 1000000000129.5453\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-02-14\n",
      "当前可用资金 1000000000129.5453\n",
      "当前总资产 1000000000129.5453\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-02-15\n",
      "当前可用资金 1000000000129.5453\n",
      "当前总资产 1000000000129.5453\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-02-18\n",
      "当前可用资金 1000000000129.5453\n",
      "当前总资产 1000000000129.5453\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-02-19\n",
      "当前可用资金 1000000000129.5453\n",
      "当前总资产 1000000000129.5453\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-02-20\n",
      "当前可用资金 1000000000129.5453\n",
      "当前总资产 1000000000129.5453\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-02-21\n",
      "当前可用资金 1000000000129.5453\n",
      "当前总资产 1000000000129.5453\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-02-22, BUY EXECUTED, ref:3813，Price: 34.9155, Size: 100.00, Cost: 3491.5538, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-02-22\n",
      "当前可用资金 999999996637.9915\n",
      "当前总资产 1000000000154.2206\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.91553818\n",
      "date 2019-02-25\n",
      "当前可用资金 999999996637.9915\n",
      "当前总资产 1000000000339.2853\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.91553818\n",
      "date 2019-02-26\n",
      "当前可用资金 999999996637.9915\n",
      "当前总资产 1000000000413.3112\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.91553818\n",
      "2019-02-27, SELL EXECUTED, ref:3814, Price: 37.5064, Size: -100.00, Cost: 3491.5538, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-02-27\n",
      "当前可用资金 1000000000388.6359\n",
      "当前总资产 1000000000388.6359\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-02-28\n",
      "当前可用资金 1000000000388.6359\n",
      "当前总资产 1000000000388.6359\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-01\n",
      "当前可用资金 1000000000388.6359\n",
      "当前总资产 1000000000388.6359\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-04\n",
      "当前可用资金 1000000000388.6359\n",
      "当前总资产 1000000000388.6359\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-05\n",
      "当前可用资金 1000000000388.6359\n",
      "当前总资产 1000000000388.6359\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-06\n",
      "当前可用资金 1000000000388.6359\n",
      "当前总资产 1000000000388.6359\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-07\n",
      "当前可用资金 1000000000388.6359\n",
      "当前总资产 1000000000388.6359\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-08\n",
      "当前可用资金 1000000000388.6359\n",
      "当前总资产 1000000000388.6359\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-11\n",
      "当前可用资金 1000000000388.6359\n",
      "当前总资产 1000000000388.6359\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-12\n",
      "当前可用资金 1000000000388.6359\n",
      "当前总资产 1000000000388.6359\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-13\n",
      "当前可用资金 1000000000388.6359\n",
      "当前总资产 1000000000388.6359\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-14\n",
      "当前可用资金 1000000000388.6359\n",
      "当前总资产 1000000000388.6359\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-03-15, BUY EXECUTED, ref:3815，Price: 41.2077, Size: 100.00, Cost: 4120.7738, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-03-15\n",
      "当前可用资金 999999996267.862\n",
      "当前总资产 1000000000530.5188\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.20773764\n",
      "2019-03-18, SELL EXECUTED, ref:3816, Price: 44.1071, Size: -100.00, Cost: 4120.7738, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-03-18\n",
      "当前可用资金 1000000000678.5706\n",
      "当前总资产 1000000000678.5706\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-19\n",
      "当前可用资金 1000000000678.5706\n",
      "当前总资产 1000000000678.5706\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-20\n",
      "当前可用资金 1000000000678.5706\n",
      "当前总资产 1000000000678.5706\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-21\n",
      "当前可用资金 1000000000678.5706\n",
      "当前总资产 1000000000678.5706\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-22\n",
      "当前可用资金 1000000000678.5706\n",
      "当前总资产 1000000000678.5706\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-25\n",
      "当前可用资金 1000000000678.5706\n",
      "当前总资产 1000000000678.5706\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-26\n",
      "当前可用资金 1000000000678.5706\n",
      "当前总资产 1000000000678.5706\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-27\n",
      "当前可用资金 1000000000678.5706\n",
      "当前总资产 1000000000678.5706\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-28\n",
      "当前可用资金 1000000000678.5706\n",
      "当前总资产 1000000000678.5706\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-29\n",
      "当前可用资金 1000000000678.5706\n",
      "当前总资产 1000000000678.5706\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-04-01, BUY EXECUTED, ref:3817，Price: 46.1428, Size: 100.00, Cost: 4614.2796, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-04-01\n",
      "当前可用资金 999999996064.2909\n",
      "当前总资产 1000000000838.9598\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.14279604\n",
      "date 2019-04-02\n",
      "当前可用资金 999999996064.2909\n",
      "当前总资产 1000000000808.1157\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.14279604\n",
      "2019-04-03, SELL EXECUTED, ref:3818, Price: 47.0681, Size: -100.00, Cost: 4614.2796, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-04-03\n",
      "当前可用资金 1000000000771.1028\n",
      "当前总资产 1000000000771.1028\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-04-04\n",
      "当前可用资金 1000000000771.1028\n",
      "当前总资产 1000000000771.1028\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-04-08\n",
      "当前可用资金 1000000000771.1028\n",
      "当前总资产 1000000000771.1028\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-04-09\n",
      "当前可用资金 1000000000771.1028\n",
      "当前总资产 1000000000771.1028\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-04-10\n",
      "当前可用资金 1000000000771.1028\n",
      "当前总资产 1000000000771.1028\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-04-11\n",
      "当前可用资金 1000000000771.1028\n",
      "当前总资产 1000000000771.1028\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-04-12\n",
      "当前可用资金 1000000000771.1028\n",
      "当前总资产 1000000000771.1028\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-04-15\n",
      "当前可用资金 1000000000771.1028\n",
      "当前总资产 1000000000771.1028\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-04-16\n",
      "当前可用资金 1000000000771.1028\n",
      "当前总资产 1000000000771.1028\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-04-17, BUY EXECUTED, ref:3819，Price: 46.6363, Size: 100.00, Cost: 4663.6302, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-04-17\n",
      "当前可用资金 999999996107.4725\n",
      "当前总资产 1000000000721.7522\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-04-18\n",
      "当前可用资金 999999996107.4725\n",
      "当前总资产 1000000000592.2069\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-04-19\n",
      "当前可用资金 999999996107.4725\n",
      "当前总资产 1000000000653.8951\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-04-22\n",
      "当前可用资金 999999996107.4725\n",
      "当前总资产 1000000000382.4669\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-04-23\n",
      "当前可用资金 999999996107.4725\n",
      "当前总资产 1000000000400.9734\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-04-24\n",
      "当前可用资金 999999996107.4725\n",
      "当前总资产 1000000000400.9734\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-04-25\n",
      "当前可用资金 999999996107.4725\n",
      "当前总资产 1000000000376.2981\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-04-26\n",
      "当前可用资金 999999996107.4725\n",
      "当前总资产 1000000000407.1422\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-04-29\n",
      "当前可用资金 999999996107.4725\n",
      "当前总资产 1000000000444.1552\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-04-30\n",
      "当前可用资金 999999996107.4725\n",
      "当前总资产 1000000000400.9734\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-05-06\n",
      "当前可用资金 999999996107.4725\n",
      "当前总资产 999999999969.1558\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-05-07\n",
      "当前可用资金 999999996107.4725\n",
      "当前总资产 1000000000123.3763\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-05-08\n",
      "当前可用资金 999999996107.4725\n",
      "当前总资产 1000000000123.3763\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-05-09\n",
      "当前可用资金 999999996107.4725\n",
      "当前总资产 1000000000129.8018\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-05-10\n",
      "当前可用资金 999999996107.4725\n",
      "当前总资产 1000000000219.7579\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-05-13\n",
      "当前可用资金 999999996107.4725\n",
      "当前总资产 1000000000097.6746\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-05-14\n",
      "当前可用资金 999999996107.4725\n",
      "当前总资产 1000000000059.1218\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-05-15\n",
      "当前可用资金 999999996107.4725\n",
      "当前总资产 1000000000142.6526\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-05-16\n",
      "当前可用资金 999999996107.4725\n",
      "当前总资产 1000000000168.3544\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-05-17\n",
      "当前可用资金 999999996107.4725\n",
      "当前总资产 1000000000104.1\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "2019-05-20, SELL EXECUTED, ref:3820, Price: 39.7735, Size: -100.00, Cost: 4663.6302, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-05-20\n",
      "当前可用资金 1000000000084.8236\n",
      "当前总资产 1000000000084.8236\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-05-21, BUY EXECUTED, ref:3821，Price: 39.2595, Size: 100.00, Cost: 3925.9475, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-05-21\n",
      "当前可用资金 999999996158.8761\n",
      "当前总资产 1000000000155.5035\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "date 2019-05-22\n",
      "当前可用资金 999999996158.8761\n",
      "当前总资产 1000000000097.6744\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "date 2019-05-23\n",
      "当前可用资金 999999996158.8761\n",
      "当前总资产 1000000000020.5691\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "date 2019-05-24\n",
      "当前可用资金 999999996158.8761\n",
      "当前总资产 999999999911.3365\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "date 2019-05-27\n",
      "当前可用资金 999999996158.8761\n",
      "当前总资产 1000000000001.2928\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "date 2019-05-28\n",
      "当前可用资金 999999996158.8761\n",
      "当前总资产 1000000000014.1437\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "date 2019-05-29\n",
      "当前可用资金 999999996158.8761\n",
      "当前总资产 999999999949.8893\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "date 2019-05-30\n",
      "当前可用资金 999999996158.8761\n",
      "当前总资产 999999999962.7401\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "date 2019-05-31\n",
      "当前可用资金 999999996158.8761\n",
      "当前总资产 999999999962.7401\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "date 2019-06-03\n",
      "当前可用资金 999999996158.8761\n",
      "当前总资产 999999999930.6129\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "date 2019-06-04\n",
      "当前可用资金 999999996158.8761\n",
      "当前总资产 999999999827.8058\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "date 2019-06-05\n",
      "当前可用资金 999999996158.8761\n",
      "当前总资产 999999999911.3365\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "date 2019-06-06\n",
      "当前可用资金 999999996158.8761\n",
      "当前总资产 999999999821.3804\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "date 2019-06-10\n",
      "当前可用资金 999999996158.8761\n",
      "当前总资产 999999999956.3147\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "date 2019-06-11\n",
      "当前可用资金 999999996158.8761\n",
      "当前总资产 1000000000155.5035\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "date 2019-06-12\n",
      "当前可用资金 999999996158.8761\n",
      "当前总资产 1000000000155.5035\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "2019-06-13, SELL EXECUTED, ref:3822, Price: 40.0948, Size: -100.00, Cost: 3925.9475, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-06-13\n",
      "当前可用资金 1000000000168.3544\n",
      "当前总资产 1000000000168.3544\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-06-14\n",
      "当前可用资金 1000000000168.3544\n",
      "当前总资产 1000000000168.3544\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-06-17\n",
      "当前可用资金 1000000000168.3544\n",
      "当前总资产 1000000000168.3544\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-06-18\n",
      "当前可用资金 1000000000168.3544\n",
      "当前总资产 1000000000168.3544\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-06-19\n",
      "当前可用资金 1000000000168.3544\n",
      "当前总资产 1000000000168.3544\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-06-20\n",
      "当前可用资金 1000000000168.3544\n",
      "当前总资产 1000000000168.3544\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-06-21\n",
      "当前可用资金 1000000000168.3544\n",
      "当前总资产 1000000000168.3544\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-06-24\n",
      "当前可用资金 1000000000168.3544\n",
      "当前总资产 1000000000168.3544\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-06-25\n",
      "当前可用资金 1000000000168.3544\n",
      "当前总资产 1000000000168.3544\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-06-26\n",
      "当前可用资金 1000000000168.3544\n",
      "当前总资产 1000000000168.3544\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-06-27\n",
      "当前可用资金 1000000000168.3544\n",
      "当前总资产 1000000000168.3544\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-06-28\n",
      "当前可用资金 1000000000168.3544\n",
      "当前总资产 1000000000168.3544\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-07-01\n",
      "当前可用资金 1000000000168.3544\n",
      "当前总资产 1000000000168.3544\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-07-02, BUY EXECUTED, ref:3823，Price: 40.4803, Size: 100.00, Cost: 4048.0310, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-07-02\n",
      "当前可用资金 999999996120.3234\n",
      "当前总资产 1000000000149.078\n",
      "当前持仓量 100\n",
      "当前持仓成本 40.4803098\n",
      "date 2019-07-03\n",
      "当前可用资金 999999996120.3234\n",
      "当前总资产 1000000000258.3105\n",
      "当前持仓量 100\n",
      "当前持仓成本 40.4803098\n",
      "date 2019-07-04\n",
      "当前可用资金 999999996120.3234\n",
      "当前总资产 1000000000328.9905\n",
      "当前持仓量 100\n",
      "当前持仓成本 40.4803098\n",
      "date 2019-07-05\n",
      "当前可用资金 999999996120.3234\n",
      "当前总资产 1000000000232.6088\n",
      "当前持仓量 100\n",
      "当前持仓成本 40.4803098\n",
      "2019-07-08, SELL EXECUTED, ref:3824, Price: 40.9301, Size: -100.00, Cost: 4048.0310, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-07-08\n",
      "当前可用资金 1000000000213.3325\n",
      "当前总资产 1000000000213.3325\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-07-09\n",
      "当前可用资金 1000000000213.3325\n",
      "当前总资产 1000000000213.3325\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-07-10\n",
      "当前可用资金 1000000000213.3325\n",
      "当前总资产 1000000000213.3325\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-07-11, BUY EXECUTED, ref:3825，Price: 38.4884, Size: 100.00, Cost: 3848.8422, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-07-11\n",
      "当前可用资金 999999996364.4904\n",
      "当前总资产 1000000000316.1396\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.48842154\n",
      "date 2019-07-12\n",
      "当前可用资金 999999996364.4904\n",
      "当前总资产 1000000000303.2887\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.48842154\n",
      "date 2019-07-15\n",
      "当前可用资金 999999996364.4904\n",
      "当前总资产 1000000000386.8196\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.48842154\n",
      "date 2019-07-16\n",
      "当前可用资金 999999996364.4904\n",
      "当前总资产 1000000000489.6267\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.48842154\n",
      "date 2019-07-17\n",
      "当前可用资金 999999996364.4904\n",
      "当前总资产 1000000000483.2013\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.48842154\n",
      "2019-07-18, SELL EXECUTED, ref:3826, Price: 41.1871, Size: -100.00, Cost: 3848.8422, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-07-18\n",
      "当前可用资金 1000000000483.2013\n",
      "当前总资产 1000000000483.2013\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-07-19\n",
      "当前可用资金 1000000000483.2013\n",
      "当前总资产 1000000000483.2013\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-07-22\n",
      "当前可用资金 1000000000483.2013\n",
      "当前总资产 1000000000483.2013\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-07-23\n",
      "当前可用资金 1000000000483.2013\n",
      "当前总资产 1000000000483.2013\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-07-24\n",
      "当前可用资金 1000000000483.2013\n",
      "当前总资产 1000000000483.2013\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-07-25\n",
      "当前可用资金 1000000000483.2013\n",
      "当前总资产 1000000000483.2013\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-07-26\n",
      "当前可用资金 1000000000483.2013\n",
      "当前总资产 1000000000483.2013\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-07-29, BUY EXECUTED, ref:3827，Price: 41.2514, Size: 100.00, Cost: 4125.1363, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-07-29\n",
      "当前可用资金 999999996358.065\n",
      "当前总资产 1000000000380.3942\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.25136332\n",
      "date 2019-07-30\n",
      "当前可用资金 999999996358.065\n",
      "当前总资产 1000000000386.8196\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.25136332\n",
      "date 2019-07-31\n",
      "当前可用资金 999999996358.065\n",
      "当前总资产 1000000000284.0125\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.25136332\n",
      "date 2019-08-01\n",
      "当前可用资金 999999996358.065\n",
      "当前总资产 1000000000206.9071\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.25136332\n",
      "date 2019-08-02\n",
      "当前可用资金 999999996358.065\n",
      "当前总资产 1000000000091.249\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.25136332\n",
      "date 2019-08-05\n",
      "当前可用资金 999999996358.065\n",
      "当前总资产 1000000000052.6964\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.25136332\n",
      "date 2019-08-06\n",
      "当前可用资金 999999996358.065\n",
      "当前总资产 1000000000084.8236\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.25136332\n",
      "date 2019-08-07\n",
      "当前可用资金 999999996358.065\n",
      "当前总资产 1000000000116.9508\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.25136332\n",
      "date 2019-08-08\n",
      "当前可用资金 999999996358.065\n",
      "当前总资产 1000000000071.9728\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.25136332\n",
      "date 2019-08-09\n",
      "当前可用资金 999999996358.065\n",
      "当前总资产 1000000000020.5692\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.25136332\n",
      "date 2019-08-12\n",
      "当前可用资金 999999996358.065\n",
      "当前总资产 1000000000052.6964\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.25136332\n",
      "date 2019-08-13\n",
      "当前可用资金 999999996358.065\n",
      "当前总资产 1000000000001.2928\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.25136332\n",
      "date 2019-08-14\n",
      "当前可用资金 999999996358.065\n",
      "当前总资产 999999999994.8674\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.25136332\n",
      "date 2019-08-15\n",
      "当前可用资金 999999996358.065\n",
      "当前总资产 1000000000014.1437\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.25136332\n",
      "date 2019-08-16\n",
      "当前可用资金 999999996358.065\n",
      "当前总资产 999999999988.4419\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.25136332\n",
      "date 2019-08-19\n",
      "当前可用资金 999999996358.065\n",
      "当前总资产 1000000000129.8018\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.25136332\n",
      "date 2019-08-20\n",
      "当前可用资金 999999996358.065\n",
      "当前总资产 1000000000168.3544\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.25136332\n",
      "2019-08-21, SELL EXECUTED, ref:3828, Price: 37.8459, Size: -100.00, Cost: 4125.1363, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-08-21\n",
      "当前可用资金 1000000000142.6526\n",
      "当前总资产 1000000000142.6526\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-08-22\n",
      "当前可用资金 1000000000142.6526\n",
      "当前总资产 1000000000142.6526\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-08-23\n",
      "当前可用资金 1000000000142.6526\n",
      "当前总资产 1000000000142.6526\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-08-26\n",
      "当前可用资金 1000000000142.6526\n",
      "当前总资产 1000000000142.6526\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-08-27\n",
      "当前可用资金 1000000000142.6526\n",
      "当前总资产 1000000000142.6526\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-08-28\n",
      "当前可用资金 1000000000142.6526\n",
      "当前总资产 1000000000142.6526\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-08-29\n",
      "当前可用资金 1000000000142.6526\n",
      "当前总资产 1000000000142.6526\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-08-30\n",
      "当前可用资金 1000000000142.6526\n",
      "当前总资产 1000000000142.6526\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-09-02, BUY EXECUTED, ref:3829，Price: 36.6893, Size: 100.00, Cost: 3668.9297, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-09-02\n",
      "当前可用资金 999999996473.7229\n",
      "当前总资产 1000000000200.4816\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.68929666\n",
      "date 2019-09-03\n",
      "当前可用资金 999999996473.7229\n",
      "当前总资产 1000000000187.6307\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.68929666\n",
      "date 2019-09-04\n",
      "当前可用资金 999999996473.7229\n",
      "当前总资产 1000000000316.1396\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.68929666\n",
      "date 2019-09-05\n",
      "当前可用资金 999999996473.7229\n",
      "当前总资产 1000000000348.2668\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.68929666\n",
      "date 2019-09-06\n",
      "当前可用资金 999999996473.7229\n",
      "当前总资产 1000000000380.394\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.68929666\n",
      "date 2019-09-09\n",
      "当前可用资金 999999996473.7229\n",
      "当前总资产 1000000000431.7976\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.68929666\n",
      "2019-09-10, SELL EXECUTED, ref:3830, Price: 39.5807, Size: -100.00, Cost: 3668.9297, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-09-10\n",
      "当前可用资金 1000000000431.7976\n",
      "当前总资产 1000000000431.7976\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-09-11\n",
      "当前可用资金 1000000000431.7976\n",
      "当前总资产 1000000000431.7976\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-09-12\n",
      "当前可用资金 1000000000431.7976\n",
      "当前总资产 1000000000431.7976\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-09-16\n",
      "当前可用资金 1000000000431.7976\n",
      "当前总资产 1000000000431.7976\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-09-17\n",
      "当前可用资金 1000000000431.7976\n",
      "当前总资产 1000000000431.7976\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-09-18\n",
      "当前可用资金 1000000000431.7976\n",
      "当前总资产 1000000000431.7976\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-09-19\n",
      "当前可用资金 1000000000431.7976\n",
      "当前总资产 1000000000431.7976\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-09-20\n",
      "当前可用资金 1000000000431.7976\n",
      "当前总资产 1000000000431.7976\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-09-23\n",
      "当前可用资金 1000000000431.7976\n",
      "当前总资产 1000000000431.7976\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-09-24\n",
      "当前可用资金 1000000000431.7976\n",
      "当前总资产 1000000000431.7976\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-09-25\n",
      "当前可用资金 1000000000431.7976\n",
      "当前总资产 1000000000431.7976\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-09-26, BUY EXECUTED, ref:3831，Price: 39.5807, Size: 100.00, Cost: 3958.0747, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-09-26\n",
      "当前可用资金 999999996473.7229\n",
      "当前总资产 1000000000393.245\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.58074736\n",
      "date 2019-09-27\n",
      "当前可用资金 999999996473.7229\n",
      "当前总资产 1000000000341.8414\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.58074736\n",
      "date 2019-09-30\n",
      "当前可用资金 999999996473.7229\n",
      "当前总资产 1000000000335.4159\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.58074736\n",
      "date 2019-10-08\n",
      "当前可用资金 999999996473.7229\n",
      "当前总资产 1000000000508.903\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.58074736\n",
      "date 2019-10-09\n",
      "当前可用资金 999999996473.7229\n",
      "当前总资产 1000000000624.561\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.58074736\n",
      "date 2019-10-10\n",
      "当前可用资金 999999996473.7229\n",
      "当前总资产 1000000000714.5172\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.58074736\n",
      "2019-10-11, SELL EXECUTED, ref:3832, Price: 43.0505, Size: -100.00, Cost: 3958.0747, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-10-11\n",
      "当前可用资金 1000000000778.7717\n",
      "当前总资产 1000000000778.7717\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-10-14\n",
      "当前可用资金 1000000000778.7717\n",
      "当前总资产 1000000000778.7717\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-10-15\n",
      "当前可用资金 1000000000778.7717\n",
      "当前总资产 1000000000778.7717\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-10-16\n",
      "当前可用资金 1000000000778.7717\n",
      "当前总资产 1000000000778.7717\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-10-17\n",
      "当前可用资金 1000000000778.7717\n",
      "当前总资产 1000000000778.7717\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-10-18\n",
      "当前可用资金 1000000000778.7717\n",
      "当前总资产 1000000000778.7717\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-10-21\n",
      "当前可用资金 1000000000778.7717\n",
      "当前总资产 1000000000778.7717\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-10-22\n",
      "当前可用资金 1000000000778.7717\n",
      "当前总资产 1000000000778.7717\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-10-23\n",
      "当前可用资金 1000000000778.7717\n",
      "当前总资产 1000000000778.7717\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-10-24, BUY EXECUTED, ref:3833，Price: 41.3799, Size: 100.00, Cost: 4137.9872, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-10-24\n",
      "当前可用资金 999999996640.7845\n",
      "当前总资产 1000000000810.899\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.37987224\n",
      "date 2019-10-25\n",
      "当前可用资金 999999996640.7845\n",
      "当前总资产 1000000000907.2806\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.37987224\n",
      "date 2019-10-28\n",
      "当前可用资金 999999996640.7845\n",
      "当前总资产 1000000000849.4517\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.37987224\n",
      "date 2019-10-29\n",
      "当前可用资金 999999996640.7845\n",
      "当前总资产 1000000000785.1973\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.37987224\n",
      "date 2019-10-30\n",
      "当前可用资金 999999996640.7845\n",
      "当前总资产 1000000000720.9427\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.37987224\n",
      "date 2019-10-31\n",
      "当前可用资金 999999996640.7845\n",
      "当前总资产 1000000000753.07\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.37987224\n",
      "date 2019-11-01\n",
      "当前可用资金 999999996640.7845\n",
      "当前总资产 1000000000817.3245\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.37987224\n",
      "date 2019-11-04\n",
      "当前可用资金 999999996640.7845\n",
      "当前总资产 1000000000836.6008\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.37987224\n",
      "date 2019-11-05\n",
      "当前可用资金 999999996640.7845\n",
      "当前总资产 1000000000971.5352\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.37987224\n",
      "date 2019-11-06\n",
      "当前可用资金 999999996640.7845\n",
      "当前总资产 1000000000843.0262\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.37987224\n",
      "2019-11-07, SELL EXECUTED, ref:3834, Price: 42.2152, Size: -100.00, Cost: 4137.9872, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-11-07\n",
      "当前可用资金 1000000000862.3026\n",
      "当前总资产 1000000000862.3026\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-11-08\n",
      "当前可用资金 1000000000862.3026\n",
      "当前总资产 1000000000862.3026\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-11-11\n",
      "当前可用资金 1000000000862.3026\n",
      "当前总资产 1000000000862.3026\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-11-12\n",
      "当前可用资金 1000000000862.3026\n",
      "当前总资产 1000000000862.3026\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-11-13, BUY EXECUTED, ref:3835，Price: 40.9943, Size: 100.00, Cost: 4099.4345, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-11-13\n",
      "当前可用资金 999999996762.868\n",
      "当前总资产 1000000000791.6227\n",
      "当前持仓量 100\n",
      "当前持仓成本 40.99434548\n",
      "date 2019-11-14\n",
      "当前可用资金 999999996762.868\n",
      "当前总资产 1000000000836.6008\n",
      "当前持仓量 100\n",
      "当前持仓成本 40.99434548\n",
      "date 2019-11-15\n",
      "当前可用资金 999999996762.868\n",
      "当前总资产 1000000000804.4736\n",
      "当前持仓量 100\n",
      "当前持仓成本 40.99434548\n",
      "date 2019-11-18\n",
      "当前可用资金 999999996762.868\n",
      "当前总资产 1000000000926.557\n",
      "当前持仓量 100\n",
      "当前持仓成本 40.99434548\n",
      "date 2019-11-19\n",
      "当前可用资金 999999996762.868\n",
      "当前总资产 1000000001029.3641\n",
      "当前持仓量 100\n",
      "当前持仓成本 40.99434548\n",
      "date 2019-11-20\n",
      "当前可用资金 999999996762.868\n",
      "当前总资产 1000000001042.2151\n",
      "当前持仓量 100\n",
      "当前持仓成本 40.99434548\n",
      "2019-11-21, SELL EXECUTED, ref:3836, Price: 42.7935, Size: -100.00, Cost: 4099.4345, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-11-21\n",
      "当前可用资金 1000000001042.2151\n",
      "当前总资产 1000000001042.2151\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-11-22\n",
      "当前可用资金 1000000001042.2151\n",
      "当前总资产 1000000001042.2151\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-11-25\n",
      "当前可用资金 1000000001042.2151\n",
      "当前总资产 1000000001042.2151\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-11-26\n",
      "当前可用资金 1000000001042.2151\n",
      "当前总资产 1000000001042.2151\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-11-27\n",
      "当前可用资金 1000000001042.2151\n",
      "当前总资产 1000000001042.2151\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-11-28\n",
      "当前可用资金 1000000001042.2151\n",
      "当前总资产 1000000001042.2151\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-11-29\n",
      "当前可用资金 1000000001042.2151\n",
      "当前总资产 1000000001042.2151\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-02\n",
      "当前可用资金 1000000001042.2151\n",
      "当前总资产 1000000001042.2151\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-12-03, BUY EXECUTED, ref:3837，Price: 43.6930, Size: 100.00, Cost: 4369.3033, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-12-03\n",
      "当前可用资金 999999996672.9119\n",
      "当前总资产 1000000001125.746\n",
      "当前持仓量 100\n",
      "当前持仓成本 43.6930328\n",
      "2019-12-04, SELL EXECUTED, ref:3838, Price: 44.0143, Size: -100.00, Cost: 4369.3033, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-12-04\n",
      "当前可用资金 1000000001074.3424\n",
      "当前总资产 1000000001074.3424\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-05\n",
      "当前可用资金 1000000001074.3424\n",
      "当前总资产 1000000001074.3424\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-06\n",
      "当前可用资金 1000000001074.3424\n",
      "当前总资产 1000000001074.3424\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-09\n",
      "当前可用资金 1000000001074.3424\n",
      "当前总资产 1000000001074.3424\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-10\n",
      "当前可用资金 1000000001074.3424\n",
      "当前总资产 1000000001074.3424\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-11\n",
      "当前可用资金 1000000001074.3424\n",
      "当前总资产 1000000001074.3424\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-12\n",
      "当前可用资金 1000000001074.3424\n",
      "当前总资产 1000000001074.3424\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-13\n",
      "当前可用资金 1000000001074.3424\n",
      "当前总资产 1000000001074.3424\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-16\n",
      "当前可用资金 1000000001074.3424\n",
      "当前总资产 1000000001074.3424\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-17\n",
      "当前可用资金 1000000001074.3424\n",
      "当前总资产 1000000001074.3424\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-18\n",
      "当前可用资金 1000000001074.3424\n",
      "当前总资产 1000000001074.3424\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-19\n",
      "当前可用资金 1000000001074.3424\n",
      "当前总资产 1000000001074.3424\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-20\n",
      "当前可用资金 1000000001074.3424\n",
      "当前总资产 1000000001074.3424\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-23\n",
      "当前可用资金 1000000001074.3424\n",
      "当前总资产 1000000001074.3424\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-24\n",
      "当前可用资金 1000000001074.3424\n",
      "当前总资产 1000000001074.3424\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-25\n",
      "当前可用资金 1000000001074.3424\n",
      "当前总资产 1000000001074.3424\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-26\n",
      "当前可用资金 1000000001074.3424\n",
      "当前总资产 1000000001074.3424\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-12-27, BUY EXECUTED, ref:3839，Price: 45.4922, Size: 100.00, Cost: 4549.2158, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-12-27\n",
      "当前可用资金 999999996525.1266\n",
      "当前总资产 1000000001067.9169\n",
      "当前持仓量 100\n",
      "当前持仓成本 45.49215768\n",
      "date 2019-12-30\n",
      "当前可用资金 999999996525.1266\n",
      "当前总资产 1000000001119.3204\n",
      "当前持仓量 100\n",
      "当前持仓成本 45.49215768\n",
      "date 2019-12-31\n",
      "当前可用资金 999999996525.1266\n",
      "当前总资产 1000000001260.6803\n",
      "当前持仓量 100\n",
      "当前持仓成本 45.49215768\n",
      "2020-01-02, SELL EXECUTED, ref:3840, Price: 48.0623, Size: -100.00, Cost: 4549.2158, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-01-02\n",
      "当前可用资金 1000000001331.3602\n",
      "当前总资产 1000000001331.3602\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-01-03\n",
      "当前可用资金 1000000001331.3602\n",
      "当前总资产 1000000001331.3602\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-01-06\n",
      "当前可用资金 1000000001331.3602\n",
      "当前总资产 1000000001331.3602\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-01-07\n",
      "当前可用资金 1000000001331.3602\n",
      "当前总资产 1000000001331.3602\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-01-08\n",
      "当前可用资金 1000000001331.3602\n",
      "当前总资产 1000000001331.3602\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-01-09\n",
      "当前可用资金 1000000001331.3602\n",
      "当前总资产 1000000001331.3602\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-01-10\n",
      "当前可用资金 1000000001331.3602\n",
      "当前总资产 1000000001331.3602\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-01-13\n",
      "当前可用资金 1000000001331.3602\n",
      "当前总资产 1000000001331.3602\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-01-14\n",
      "当前可用资金 1000000001331.3602\n",
      "当前总资产 1000000001331.3602\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-01-15\n",
      "当前可用资金 1000000001331.3602\n",
      "当前总资产 1000000001331.3602\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-01-16\n",
      "当前可用资金 1000000001331.3602\n",
      "当前总资产 1000000001331.3602\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-01-17\n",
      "当前可用资金 1000000001331.3602\n",
      "当前总资产 1000000001331.3602\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-01-20, BUY EXECUTED, ref:3841，Price: 47.0985, Size: 100.00, Cost: 4709.8519, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-01-20\n",
      "当前可用资金 999999996621.5083\n",
      "当前总资产 1000000001279.9567\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.09851918\n",
      "date 2020-01-21\n",
      "当前可用资金 999999996621.5083\n",
      "当前总资产 1000000001119.3206\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.09851918\n",
      "date 2020-01-22\n",
      "当前可用资金 999999996621.5083\n",
      "当前总资产 1000000001222.1277\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.09851918\n",
      "date 2020-01-23\n",
      "当前可用资金 999999996621.5083\n",
      "当前总资产 1000000001035.7897\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.09851918\n",
      "date 2020-02-03\n",
      "当前可用资金 999999996621.5083\n",
      "当前总资产 1000000000592.434\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.09851918\n",
      "date 2020-02-04\n",
      "当前可用资金 999999996621.5083\n",
      "当前总资产 1000000000573.1576\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.09851918\n",
      "date 2020-02-05\n",
      "当前可用资金 999999996621.5083\n",
      "当前总资产 1000000000637.4121\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.09851918\n",
      "date 2020-02-06\n",
      "当前可用资金 999999996621.5083\n",
      "当前总资产 1000000000682.3901\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.09851918\n",
      "date 2020-02-07\n",
      "当前可用资金 999999996621.5083\n",
      "当前总资产 1000000000624.5612\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.09851918\n",
      "date 2020-02-10\n",
      "当前可用资金 999999996621.5083\n",
      "当前总资产 1000000000727.3683\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.09851918\n",
      "date 2020-02-11\n",
      "当前可用资金 999999996621.5083\n",
      "当前总资产 1000000000939.408\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.09851918\n",
      "date 2020-02-12\n",
      "当前可用资金 999999996621.5083\n",
      "当前总资产 1000000000875.1536\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.09851918\n",
      "date 2020-02-13\n",
      "当前可用资金 999999996621.5083\n",
      "当前总资产 1000000001016.5133\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.09851918\n",
      "2020-02-14, SELL EXECUTED, ref:3842, Price: 44.2713, Size: -100.00, Cost: 4709.8519, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-02-14\n",
      "当前可用资金 1000000001048.6406\n",
      "当前总资产 1000000001048.6406\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-02-17\n",
      "当前可用资金 1000000001048.6406\n",
      "当前总资产 1000000001048.6406\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-02-18\n",
      "当前可用资金 1000000001048.6406\n",
      "当前总资产 1000000001048.6406\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-02-19\n",
      "当前可用资金 1000000001048.6406\n",
      "当前总资产 1000000001048.6406\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-02-20\n",
      "当前可用资金 1000000001048.6406\n",
      "当前总资产 1000000001048.6406\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-02-21\n",
      "当前可用资金 1000000001048.6406\n",
      "当前总资产 1000000001048.6406\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-02-24\n",
      "当前可用资金 1000000001048.6406\n",
      "当前总资产 1000000001048.6406\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-02-25, BUY EXECUTED, ref:3843，Price: 41.6369, Size: 100.00, Cost: 4163.6890, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-02-25\n",
      "当前可用资金 999999996884.9517\n",
      "当前总资产 1000000001119.3206\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.63689008\n",
      "date 2020-02-26\n",
      "当前可用资金 999999996884.9517\n",
      "当前总资产 1000000001151.4478\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.63689008\n",
      "date 2020-02-27\n",
      "当前可用资金 999999996884.9517\n",
      "当前总资产 1000000001151.4478\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.63689008\n",
      "date 2020-02-28\n",
      "当前可用资金 999999996884.9517\n",
      "当前总资产 1000000001055.0662\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.63689008\n",
      "date 2020-03-02\n",
      "当前可用资金 999999996884.9517\n",
      "当前总资产 1000000001344.2112\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.63689008\n",
      "date 2020-03-03\n",
      "当前可用资金 999999996884.9517\n",
      "当前总资产 1000000001267.1058\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.63689008\n",
      "date 2020-03-04\n",
      "当前可用资金 999999996884.9517\n",
      "当前总资产 1000000001459.8693\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.63689008\n",
      "2020-03-05, SELL EXECUTED, ref:3844, Price: 45.3636, Size: -100.00, Cost: 4163.6890, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-03-05\n",
      "当前可用资金 1000000001421.3165\n",
      "当前总资产 1000000001421.3165\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-03-06\n",
      "当前可用资金 1000000001421.3165\n",
      "当前总资产 1000000001421.3165\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-03-09\n",
      "当前可用资金 1000000001421.3165\n",
      "当前总资产 1000000001421.3165\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-03-10\n",
      "当前可用资金 1000000001421.3165\n",
      "当前总资产 1000000001421.3165\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-03-11\n",
      "当前可用资金 1000000001421.3165\n",
      "当前总资产 1000000001421.3165\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-03-12, BUY EXECUTED, ref:3845，Price: 42.7935, Size: 100.00, Cost: 4279.3470, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-03-12\n",
      "当前可用资金 999999997141.9695\n",
      "当前总资产 1000000001337.7858\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.79347036\n",
      "date 2020-03-13\n",
      "当前可用资金 999999997141.9695\n",
      "当前总资产 1000000001247.8295\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.79347036\n",
      "date 2020-03-16\n",
      "当前可用资金 999999997141.9695\n",
      "当前总资产 1000000001157.8733\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.79347036\n",
      "date 2020-03-17\n",
      "当前可用资金 999999997141.9695\n",
      "当前总资产 1000000001138.5969\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.79347036\n",
      "date 2020-03-18\n",
      "当前可用资金 999999997141.9695\n",
      "当前总资产 1000000000997.237\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.79347036\n",
      "date 2020-03-19\n",
      "当前可用资金 999999997141.9695\n",
      "当前总资产 1000000000939.4081\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.79347036\n",
      "date 2020-03-20\n",
      "当前可用资金 999999997141.9695\n",
      "当前总资产 1000000000984.3862\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.79347036\n",
      "date 2020-03-23\n",
      "当前可用资金 999999997141.9695\n",
      "当前总资产 1000000000810.8992\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.79347036\n",
      "date 2020-03-24\n",
      "当前可用资金 999999997141.9695\n",
      "当前总资产 1000000000958.6844\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.79347036\n",
      "date 2020-03-25\n",
      "当前可用资金 999999997141.9695\n",
      "当前总资产 1000000001125.746\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.79347036\n",
      "date 2020-03-26\n",
      "当前可用资金 999999997141.9695\n",
      "当前总资产 1000000001087.1934\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.79347036\n",
      "date 2020-03-27\n",
      "当前可用资金 999999997141.9695\n",
      "当前总资产 1000000001177.1495\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.79347036\n",
      "date 2020-03-30\n",
      "当前可用资金 999999997141.9695\n",
      "当前总资产 1000000001112.8951\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.79347036\n",
      "2020-03-31, SELL EXECUTED, ref:3846, Price: 40.1590, Size: -100.00, Cost: 4279.3470, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-03-31\n",
      "当前可用资金 1000000001157.8733\n",
      "当前总资产 1000000001157.8733\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-04-01\n",
      "当前可用资金 1000000001157.8733\n",
      "当前总资产 1000000001157.8733\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-04-02\n",
      "当前可用资金 1000000001157.8733\n",
      "当前总资产 1000000001157.8733\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-04-03\n",
      "当前可用资金 1000000001157.8733\n",
      "当前总资产 1000000001157.8733\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-04-07\n",
      "当前可用资金 1000000001157.8733\n",
      "当前总资产 1000000001157.8733\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-04-08, BUY EXECUTED, ref:3847，Price: 39.2595, Size: 100.00, Cost: 3925.9475, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-04-08\n",
      "当前可用资金 999999997231.9258\n",
      "当前总资产 1000000001215.7023\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "date 2020-04-09\n",
      "当前可用资金 999999997231.9258\n",
      "当前总资产 1000000001190.0005\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "date 2020-04-10\n",
      "当前可用资金 999999997231.9258\n",
      "当前总资产 1000000001177.1497\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "2020-04-13, SELL EXECUTED, ref:3848, Price: 39.4522, Size: -100.00, Cost: 3925.9475, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-04-13\n",
      "当前可用资金 1000000001177.1497\n",
      "当前总资产 1000000001177.1497\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-04-14\n",
      "当前可用资金 1000000001177.1497\n",
      "当前总资产 1000000001177.1497\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-04-15\n",
      "当前可用资金 1000000001177.1497\n",
      "当前总资产 1000000001177.1497\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-04-16\n",
      "当前可用资金 1000000001177.1497\n",
      "当前总资产 1000000001177.1497\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-04-17\n",
      "当前可用资金 1000000001177.1497\n",
      "当前总资产 1000000001177.1497\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-04-20\n",
      "当前可用资金 1000000001177.1497\n",
      "当前总资产 1000000001177.1497\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-04-21, BUY EXECUTED, ref:3849，Price: 37.9101, Size: 100.00, Cost: 3791.0131, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-04-21\n",
      "当前可用资金 999999997386.1365\n",
      "当前总资产 1000000001093.6188\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "date 2020-04-22\n",
      "当前可用资金 999999997386.1365\n",
      "当前总资产 1000000001100.0443\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "date 2020-04-23\n",
      "当前可用资金 999999997386.1365\n",
      "当前总资产 1000000001061.4916\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "date 2020-04-24\n",
      "当前可用资金 999999997386.1365\n",
      "当前总资产 1000000000990.8116\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "date 2020-04-27\n",
      "当前可用资金 999999997386.1365\n",
      "当前总资产 1000000001029.3644\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "date 2020-04-28\n",
      "当前可用资金 999999997386.1365\n",
      "当前总资产 1000000000926.5573\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "date 2020-04-29\n",
      "当前可用资金 999999997386.1365\n",
      "当前总资产 1000000000990.8116\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "date 2020-04-30\n",
      "当前可用资金 999999997386.1365\n",
      "当前总资产 1000000001125.7461\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "date 2020-05-06\n",
      "当前可用资金 999999997386.1365\n",
      "当前总资产 1000000001003.6626\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "date 2020-05-07\n",
      "当前可用资金 999999997386.1365\n",
      "当前总资产 1000000000939.4081\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "date 2020-05-08\n",
      "当前可用资金 999999997386.1365\n",
      "当前总资产 1000000000984.3862\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "date 2020-05-11\n",
      "当前可用资金 999999997386.1365\n",
      "当前总资产 1000000000984.3862\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "2020-05-12, SELL EXECUTED, ref:3850, Price: 35.9825, Size: -100.00, Cost: 3791.0131, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-05-12\n",
      "当前可用资金 1000000000984.3862\n",
      "当前总资产 1000000000984.3862\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-05-13, BUY EXECUTED, ref:3851，Price: 35.2114, Size: 100.00, Cost: 3521.1444, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-05-13\n",
      "当前可用资金 999999997463.2418\n",
      "当前总资产 1000000000965.1099\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-14\n",
      "当前可用资金 999999997463.2418\n",
      "当前总资产 1000000000932.9827\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-15\n",
      "当前可用资金 999999997463.2418\n",
      "当前总资产 1000000000926.5573\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-18\n",
      "当前可用资金 999999997463.2418\n",
      "当前总资产 1000000000920.1317\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-19\n",
      "当前可用资金 999999997463.2418\n",
      "当前总资产 1000000000855.8773\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-20\n",
      "当前可用资金 999999997463.2418\n",
      "当前总资产 1000000000817.3246\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-21\n",
      "当前可用资金 999999997463.2418\n",
      "当前总资产 1000000000753.0702\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-22\n",
      "当前可用资金 999999997463.2418\n",
      "当前总资产 1000000000701.6666\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-25\n",
      "当前可用资金 999999997463.2418\n",
      "当前总资产 1000000000759.4956\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-26\n",
      "当前可用资金 999999997463.2418\n",
      "当前总资产 1000000000759.4956\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-27\n",
      "当前可用资金 999999997463.2418\n",
      "当前总资产 1000000000785.1974\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-28\n",
      "当前可用资金 999999997463.2418\n",
      "当前总资产 1000000000791.6228\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-29\n",
      "当前可用资金 999999997463.2418\n",
      "当前总资产 1000000000753.0702\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-06-01\n",
      "当前可用资金 999999997463.2418\n",
      "当前总资产 1000000000798.0483\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-06-02\n",
      "当前可用资金 999999997463.2418\n",
      "当前总资产 1000000000888.0045\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "2020-06-03, SELL EXECUTED, ref:3852, Price: 34.3119, Size: -100.00, Cost: 3521.1444, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-06-03\n",
      "当前可用资金 1000000000894.4299\n",
      "当前总资产 1000000000894.4299\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-06-04\n",
      "当前可用资金 1000000000894.4299\n",
      "当前总资产 1000000000894.4299\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-06-05\n",
      "当前可用资金 1000000000894.4299\n",
      "当前总资产 1000000000894.4299\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-06-08\n",
      "当前可用资金 1000000000894.4299\n",
      "当前总资产 1000000000894.4299\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-06-09\n",
      "当前可用资金 1000000000894.4299\n",
      "当前总资产 1000000000894.4299\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-06-10\n",
      "当前可用资金 1000000000894.4299\n",
      "当前总资产 1000000000894.4299\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-06-11\n",
      "当前可用资金 1000000000894.4299\n",
      "当前总资产 1000000000894.4299\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-06-12, BUY EXECUTED, ref:3853，Price: 32.2557, Size: 100.00, Cost: 3225.5739, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-06-12\n",
      "当前可用资金 999999997668.8561\n",
      "当前总资产 1000000000939.4081\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.25573892\n",
      "date 2020-06-15\n",
      "当前可用资金 999999997668.8561\n",
      "当前总资产 1000000000920.1317\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.25573892\n",
      "date 2020-06-16\n",
      "当前可用资金 999999997668.8561\n",
      "当前总资产 1000000000971.5353\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.25573892\n",
      "date 2020-06-17\n",
      "当前可用资金 999999997668.8561\n",
      "当前总资产 1000000000952.259\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.25573892\n",
      "date 2020-06-18\n",
      "当前可用资金 999999997668.8561\n",
      "当前总资产 1000000001151.4478\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.25573892\n",
      "date 2020-06-19\n",
      "当前可用资金 999999997668.8561\n",
      "当前总资产 1000000001132.1715\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.25573892\n",
      "2020-06-22, SELL EXECUTED, ref:3854, Price: 34.6332, Size: -100.00, Cost: 3225.5739, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-06-22\n",
      "当前可用资金 1000000001132.1715\n",
      "当前总资产 1000000001132.1715\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-06-23\n",
      "当前可用资金 1000000001132.1715\n",
      "当前总资产 1000000001132.1715\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-06-24\n",
      "当前可用资金 1000000001132.1715\n",
      "当前总资产 1000000001132.1715\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-06-29\n",
      "当前可用资金 1000000001132.1715\n",
      "当前总资产 1000000001132.1715\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-06-30\n",
      "当前可用资金 1000000001132.1715\n",
      "当前总资产 1000000001132.1715\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-07-01\n",
      "当前可用资金 1000000001132.1715\n",
      "当前总资产 1000000001132.1715\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-07-02\n",
      "当前可用资金 1000000001132.1715\n",
      "当前总资产 1000000001132.1715\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-07-03\n",
      "当前可用资金 1000000001132.1715\n",
      "当前总资产 1000000001132.1715\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-07-06\n",
      "当前可用资金 1000000001132.1715\n",
      "当前总资产 1000000001132.1715\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-07-07\n",
      "当前可用资金 1000000001132.1715\n",
      "当前总资产 1000000001132.1715\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-07-08\n",
      "当前可用资金 1000000001132.1715\n",
      "当前总资产 1000000001132.1715\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-07-09\n",
      "当前可用资金 1000000001132.1715\n",
      "当前总资产 1000000001132.1715\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-07-10\n",
      "当前可用资金 1000000001132.1715\n",
      "当前总资产 1000000001132.1715\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-07-13\n",
      "当前可用资金 1000000001132.1715\n",
      "当前总资产 1000000001132.1715\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-07-14\n",
      "当前可用资金 1000000001132.1715\n",
      "当前总资产 1000000001132.1715\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-07-15\n",
      "当前可用资金 1000000001132.1715\n",
      "当前总资产 1000000001132.1715\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-07-16, BUY EXECUTED, ref:3855，Price: 38.7520, Size: 100.00, Cost: 3875.1957, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-07-16\n",
      "当前可用资金 999999997256.9758\n",
      "当前总资产 1000000001017.4009\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.75195688\n",
      "date 2020-07-17\n",
      "当前可用资金 999999997256.9758\n",
      "当前总资产 1000000000949.8888\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.75195688\n",
      "date 2020-07-20\n",
      "当前可用资金 999999997256.9758\n",
      "当前总资产 1000000001084.9131\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.75195688\n",
      "date 2020-07-21\n",
      "当前可用资金 999999997256.9758\n",
      "当前总资产 1000000001078.1619\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.75195688\n",
      "date 2020-07-22\n",
      "当前可用资金 999999997256.9758\n",
      "当前总资产 1000000001071.4106\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.75195688\n",
      "date 2020-07-23\n",
      "当前可用资金 999999997256.9758\n",
      "当前总资产 1000000001017.4009\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.75195688\n",
      "date 2020-07-24\n",
      "当前可用资金 999999997256.9758\n",
      "当前总资产 1000000000882.3767\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.75195688\n",
      "date 2020-07-27\n",
      "当前可用资金 999999997256.9758\n",
      "当前总资产 1000000000814.8645\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.75195688\n",
      "date 2020-07-28\n",
      "当前可用资金 999999997256.9758\n",
      "当前总资产 1000000000855.3718\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.75195688\n",
      "date 2020-07-29\n",
      "当前可用资金 999999997256.9758\n",
      "当前总资产 1000000000895.8792\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.75195688\n",
      "date 2020-07-30\n",
      "当前可用资金 999999997256.9758\n",
      "当前总资产 1000000000862.123\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.75195688\n",
      "date 2020-07-31\n",
      "当前可用资金 999999997256.9758\n",
      "当前总资产 1000000000868.8743\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.75195688\n",
      "date 2020-08-03\n",
      "当前可用资金 999999997256.9758\n",
      "当前总资产 1000000000936.3864\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.75195688\n",
      "date 2020-08-04\n",
      "当前可用资金 999999997256.9758\n",
      "当前总资产 1000000000963.3912\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.75195688\n",
      "date 2020-08-05\n",
      "当前可用资金 999999997256.9758\n",
      "当前总资产 1000000000902.6304\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.75195688\n",
      "2020-08-06, SELL EXECUTED, ref:3856, Price: 36.4565, Size: -100.00, Cost: 3875.1957, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-08-06\n",
      "当前可用资金 1000000000902.6304\n",
      "当前总资产 1000000000902.6304\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-08-07\n",
      "当前可用资金 1000000000902.6304\n",
      "当前总资产 1000000000902.6304\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-08-10\n",
      "当前可用资金 1000000000902.6304\n",
      "当前总资产 1000000000902.6304\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-08-11\n",
      "当前可用资金 1000000000902.6304\n",
      "当前总资产 1000000000902.6304\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-08-12, BUY EXECUTED, ref:3857，Price: 35.7814, Size: 100.00, Cost: 3578.1424, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-08-12\n",
      "当前可用资金 999999997324.488\n",
      "当前总资产 1000000000916.1328\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.781423600000004\n",
      "date 2020-08-13\n",
      "当前可用资金 999999997324.488\n",
      "当前总资产 1000000000929.6353\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.781423600000004\n",
      "date 2020-08-14\n",
      "当前可用资金 999999997324.488\n",
      "当前总资产 1000000001010.6498\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.781423600000004\n",
      "date 2020-08-17\n",
      "当前可用资金 999999997324.488\n",
      "当前总资产 1000000001091.6643\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.781423600000004\n",
      "2020-08-18, SELL EXECUTED, ref:3858, Price: 37.6718, Size: -100.00, Cost: 3578.1424, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-08-18\n",
      "当前可用资金 1000000001091.6643\n",
      "当前总资产 1000000001091.6643\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-08-19\n",
      "当前可用资金 1000000001091.6643\n",
      "当前总资产 1000000001091.6643\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-08-20\n",
      "当前可用资金 1000000001091.6643\n",
      "当前总资产 1000000001091.6643\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-08-21\n",
      "当前可用资金 1000000001091.6643\n",
      "当前总资产 1000000001091.6643\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-08-24\n",
      "当前可用资金 1000000001091.6643\n",
      "当前总资产 1000000001091.6643\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-08-25\n",
      "当前可用资金 1000000001091.6643\n",
      "当前总资产 1000000001091.6643\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-08-26, BUY EXECUTED, ref:3859，Price: 36.3215, Size: 100.00, Cost: 3632.1521, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-08-26\n",
      "当前可用资金 999999997459.5122\n",
      "当前总资产 1000000001010.6497\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.32152056\n",
      "date 2020-08-27\n",
      "当前可用资金 999999997459.5122\n",
      "当前总资产 1000000001010.6497\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.32152056\n",
      "date 2020-08-28\n",
      "当前可用资金 999999997459.5122\n",
      "当前总资产 1000000001105.1667\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.32152056\n",
      "date 2020-08-31\n",
      "当前可用资金 999999997459.5122\n",
      "当前总资产 1000000001172.6788\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.32152056\n",
      "date 2020-09-01\n",
      "当前可用资金 999999997459.5122\n",
      "当前总资产 1000000001138.9227\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.32152056\n",
      "date 2020-09-02\n",
      "当前可用资金 999999997459.5122\n",
      "当前总资产 1000000001138.9227\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.32152056\n",
      "2020-09-03, SELL EXECUTED, ref:3860, Price: 36.8616, Size: -100.00, Cost: 3632.1521, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-09-03\n",
      "当前可用资金 1000000001145.674\n",
      "当前总资产 1000000001145.674\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-09-04\n",
      "当前可用资金 1000000001145.674\n",
      "当前总资产 1000000001145.674\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-09-07\n",
      "当前可用资金 1000000001145.674\n",
      "当前总资产 1000000001145.674\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-09-08\n",
      "当前可用资金 1000000001145.674\n",
      "当前总资产 1000000001145.674\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-09-09, BUY EXECUTED, ref:3861，Price: 35.7139, Size: 100.00, Cost: 3571.3911, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-09-09\n",
      "当前可用资金 999999997574.2828\n",
      "当前总资产 1000000001192.9325\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.71391148\n",
      "date 2020-09-10\n",
      "当前可用资金 999999997574.2828\n",
      "当前总资产 1000000001260.4446\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.71391148\n",
      "date 2020-09-11\n",
      "当前可用资金 999999997574.2828\n",
      "当前总资产 1000000001206.4349\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.71391148\n",
      "date 2020-09-14\n",
      "当前可用资金 999999997574.2828\n",
      "当前总资产 1000000001186.1813\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.71391148\n",
      "date 2020-09-15\n",
      "当前可用资金 999999997574.2828\n",
      "当前总资产 1000000001213.1862\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.71391148\n",
      "2020-09-16, SELL EXECUTED, ref:3862, Price: 36.3890, Size: -100.00, Cost: 3571.3911, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-09-16\n",
      "当前可用资金 1000000001213.1862\n",
      "当前总资产 1000000001213.1862\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-09-17\n",
      "当前可用资金 1000000001213.1862\n",
      "当前总资产 1000000001213.1862\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-09-18\n",
      "当前可用资金 1000000001213.1862\n",
      "当前总资产 1000000001213.1862\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-09-21\n",
      "当前可用资金 1000000001213.1862\n",
      "当前总资产 1000000001213.1862\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-09-22\n",
      "当前可用资金 1000000001213.1862\n",
      "当前总资产 1000000001213.1862\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-09-23\n",
      "当前可用资金 1000000001213.1862\n",
      "当前总资产 1000000001213.1862\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-09-24\n",
      "当前可用资金 1000000001213.1862\n",
      "当前总资产 1000000001213.1862\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-09-25\n",
      "当前可用资金 1000000001213.1862\n",
      "当前总资产 1000000001213.1862\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-09-28, BUY EXECUTED, ref:3863，Price: 34.6337, Size: 100.00, Cost: 3463.3718, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-09-28\n",
      "当前可用资金 999999997749.8145\n",
      "当前总资产 1000000001253.6935\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.63371756\n",
      "date 2020-09-29\n",
      "当前可用资金 999999997749.8145\n",
      "当前总资产 1000000001192.9326\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.63371756\n",
      "date 2020-09-30\n",
      "当前可用资金 999999997749.8145\n",
      "当前总资产 1000000001145.6741\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.63371756\n",
      "date 2020-10-09\n",
      "当前可用资金 999999997749.8145\n",
      "当前总资产 1000000001186.1814\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.63371756\n",
      "date 2020-10-12\n",
      "当前可用资金 999999997749.8145\n",
      "当前总资产 1000000001294.2008\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.63371756\n",
      "date 2020-10-13\n",
      "当前可用资金 999999997749.8145\n",
      "当前总资产 1000000001260.4447\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.63371756\n",
      "date 2020-10-14\n",
      "当前可用资金 999999997749.8145\n",
      "当前总资产 1000000001213.1862\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.63371756\n",
      "date 2020-10-15\n",
      "当前可用资金 999999997749.8145\n",
      "当前总资产 1000000001213.1862\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.63371756\n",
      "2020-10-16, SELL EXECUTED, ref:3864, Price: 34.4987, Size: -100.00, Cost: 3463.3718, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-10-16\n",
      "当前可用资金 1000000001199.6838\n",
      "当前总资产 1000000001199.6838\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-10-19\n",
      "当前可用资金 1000000001199.6838\n",
      "当前总资产 1000000001199.6838\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-10-20\n",
      "当前可用资金 1000000001199.6838\n",
      "当前总资产 1000000001199.6838\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-10-21, BUY EXECUTED, ref:3865，Price: 34.2962, Size: 100.00, Cost: 3429.6157, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-10-21\n",
      "当前可用资金 999999997770.0681\n",
      "当前总资产 1000000001192.9326\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-10-22\n",
      "当前可用资金 999999997770.0681\n",
      "当前总资产 1000000001206.435\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-10-23\n",
      "当前可用资金 999999997770.0681\n",
      "当前总资产 1000000001226.6886\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-10-26\n",
      "当前可用资金 999999997770.0681\n",
      "当前总资产 1000000001192.9326\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-10-27\n",
      "当前可用资金 999999997770.0681\n",
      "当前总资产 1000000001152.4253\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-10-28\n",
      "当前可用资金 999999997770.0681\n",
      "当前总资产 1000000001118.6693\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-10-29\n",
      "当前可用资金 999999997770.0681\n",
      "当前总资产 1000000001138.9229\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-10-30\n",
      "当前可用资金 999999997770.0681\n",
      "当前总资产 1000000001098.4156\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-11-02\n",
      "当前可用资金 999999997770.0681\n",
      "当前总资产 1000000001152.4253\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-11-03\n",
      "当前可用资金 999999997770.0681\n",
      "当前总资产 1000000001179.4302\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-11-04\n",
      "当前可用资金 999999997770.0681\n",
      "当前总资产 1000000001125.4205\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-11-05\n",
      "当前可用资金 999999997770.0681\n",
      "当前总资产 1000000001179.4302\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-11-06\n",
      "当前可用资金 999999997770.0681\n",
      "当前总资产 1000000001192.9326\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "2020-11-09, SELL EXECUTED, ref:3866, Price: 34.2286, Size: -100.00, Cost: 3429.6157, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-11-09\n",
      "当前可用资金 1000000001192.9326\n",
      "当前总资产 1000000001192.9326\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-10\n",
      "当前可用资金 1000000001192.9326\n",
      "当前总资产 1000000001192.9326\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-11\n",
      "当前可用资金 1000000001192.9326\n",
      "当前总资产 1000000001192.9326\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-12\n",
      "当前可用资金 1000000001192.9326\n",
      "当前总资产 1000000001192.9326\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-13\n",
      "当前可用资金 1000000001192.9326\n",
      "当前总资产 1000000001192.9326\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-16\n",
      "当前可用资金 1000000001192.9326\n",
      "当前总资产 1000000001192.9326\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-17\n",
      "当前可用资金 1000000001192.9326\n",
      "当前总资产 1000000001192.9326\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-18\n",
      "当前可用资金 1000000001192.9326\n",
      "当前总资产 1000000001192.9326\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-19\n",
      "当前可用资金 1000000001192.9326\n",
      "当前总资产 1000000001192.9326\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-20\n",
      "当前可用资金 1000000001192.9326\n",
      "当前总资产 1000000001192.9326\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-23\n",
      "当前可用资金 1000000001192.9326\n",
      "当前总资产 1000000001192.9326\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-24\n",
      "当前可用资金 1000000001192.9326\n",
      "当前总资产 1000000001192.9326\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-25\n",
      "当前可用资金 1000000001192.9326\n",
      "当前总资产 1000000001192.9326\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-26\n",
      "当前可用资金 1000000001192.9326\n",
      "当前总资产 1000000001192.9326\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-27\n",
      "当前可用资金 1000000001192.9326\n",
      "当前总资产 1000000001192.9326\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-30\n",
      "当前可用资金 1000000001192.9326\n",
      "当前总资产 1000000001192.9326\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-12-01, BUY EXECUTED, ref:3867，Price: 34.8363, Size: 100.00, Cost: 3483.6254, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-12-01\n",
      "当前可用资金 999999997709.3073\n",
      "当前总资产 1000000001219.9375\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.83625392\n",
      "2020-12-02, SELL EXECUTED, ref:3868, Price: 35.1063, Size: -100.00, Cost: 3483.6254, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-12-02\n",
      "当前可用资金 1000000001219.9375\n",
      "当前总资产 1000000001219.9375\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-12-03\n",
      "当前可用资金 1000000001219.9375\n",
      "当前总资产 1000000001219.9375\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-12-04\n",
      "当前可用资金 1000000001219.9375\n",
      "当前总资产 1000000001219.9375\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-12-07, BUY EXECUTED, ref:3869，Price: 34.2962, Size: 100.00, Cost: 3429.6157, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-12-07\n",
      "当前可用资金 999999997790.3218\n",
      "当前总资产 1000000001179.4302\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-08\n",
      "当前可用资金 999999997790.3218\n",
      "当前总资产 1000000001179.4302\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-09\n",
      "当前可用资金 999999997790.3218\n",
      "当前总资产 1000000001145.6742\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-10\n",
      "当前可用资金 999999997790.3218\n",
      "当前总资产 1000000001145.6742\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-11\n",
      "当前可用资金 999999997790.3218\n",
      "当前总资产 1000000001105.1669\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-14\n",
      "当前可用资金 999999997790.3218\n",
      "当前总资产 1000000001132.1718\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-15\n",
      "当前可用资金 999999997790.3218\n",
      "当前总资产 1000000001111.9181\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-16\n",
      "当前可用资金 999999997790.3218\n",
      "当前总资产 1000000001078.162\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-17\n",
      "当前可用资金 999999997790.3218\n",
      "当前总资产 1000000001084.9132\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-18\n",
      "当前可用资金 999999997790.3218\n",
      "当前总资产 1000000001044.406\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-21\n",
      "当前可用资金 999999997790.3218\n",
      "当前总资产 1000000001044.406\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-22\n",
      "当前可用资金 999999997790.3218\n",
      "当前总资产 1000000001003.8987\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-23\n",
      "当前可用资金 999999997790.3218\n",
      "当前总资产 1000000000983.645\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-24\n",
      "当前可用资金 999999997790.3218\n",
      "当前总资产 1000000000909.3817\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-25\n",
      "当前可用资金 999999997790.3218\n",
      "当前总资产 1000000000916.1329\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-28\n",
      "当前可用资金 999999997790.3218\n",
      "当前总资产 1000000000902.6305\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-29\n",
      "当前可用资金 999999997790.3218\n",
      "当前总资产 1000000000949.889\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-30\n",
      "当前可用资金 999999997790.3218\n",
      "当前总资产 1000000000943.1378\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-31\n",
      "当前可用资金 999999997790.3218\n",
      "当前总资产 1000000000916.1329\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2021-01-04\n",
      "当前可用资金 999999997790.3218\n",
      "当前总资产 1000000000794.6111\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2021-01-05\n",
      "当前可用资金 999999997790.3218\n",
      "当前总资产 1000000000801.3623\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2021-01-06\n",
      "当前可用资金 999999997790.3218\n",
      "当前总资产 1000000000794.6111\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2021-01-07\n",
      "当前可用资金 999999997790.3218\n",
      "当前总资产 1000000000774.3574\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2021-01-08\n",
      "当前可用资金 999999997790.3218\n",
      "当前总资产 1000000000787.8599\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2021-01-11\n",
      "当前可用资金 999999997790.3218\n",
      "当前总资产 1000000000754.1039\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2021-01-12\n",
      "当前可用资金 999999997790.3218\n",
      "当前总资产 1000000000754.1039\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2021-01-13\n",
      "当前可用资金 999999997790.3218\n",
      "当前总资产 1000000000781.1086\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2021-01-14\n",
      "当前可用资金 999999997790.3218\n",
      "当前总资产 1000000000835.1184\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2021-01-15\n",
      "当前可用资金 999999997790.3218\n",
      "当前总资产 1000000000835.1184\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "2021-01-18, SELL EXECUTED, ref:3870, Price: 30.3805, Size: -100.00, Cost: 3429.6157, Comm 0.0000, Stock: 600466.SH\n",
      "date 2021-01-18\n",
      "当前可用资金 1000000000828.3672\n",
      "当前总资产 1000000000828.3672\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2021-01-19\n",
      "当前可用资金 1000000000828.3672\n",
      "当前总资产 1000000000828.3672\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2021-01-20\n",
      "当前可用资金 1000000000828.3672\n",
      "当前总资产 1000000000828.3672\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2021-01-21\n",
      "当前可用资金 1000000000828.3672\n",
      "当前总资产 1000000000828.3672\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2021-01-22\n",
      "当前可用资金 1000000000828.3672\n",
      "当前总资产 1000000000828.3672\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2021-01-25\n",
      "当前可用资金 1000000000828.3672\n",
      "当前总资产 1000000000828.3672\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2021-01-26, BUY EXECUTED, ref:3871，Price: 28.9627, Size: 100.00, Cost: 2896.2699, Comm 0.0000, Stock: 600466.SH\n",
      "date 2021-01-26\n",
      "当前可用资金 999999997932.0973\n",
      "当前总资产 1000000000808.1136\n",
      "当前持仓量 100\n",
      "当前持仓成本 28.96269948\n",
      "date 2021-01-27\n",
      "当前可用资金 999999997932.0973\n",
      "当前总资产 1000000000821.616\n",
      "当前持仓量 100\n",
      "当前持仓成本 28.96269948\n",
      "date 2021-01-28\n",
      "当前可用资金 999999997932.0973\n",
      "当前总资产 1000000000808.1136\n",
      "当前持仓量 100\n",
      "当前持仓成本 28.96269948\n"
     ]
    }
   ],
   "source": [
    "class TestStrategy(bt.Strategy):\n",
    "  \n",
    "    params=(('period1',5),\n",
    "            ('period2',10),)   #全局设定均线周期\n",
    "    \n",
    "    def log(self, txt, dt=None):\n",
    "        ''' Logging function fot this strategy'''\n",
    "        dt = dt or self.datas[0].datetime.date(0)\n",
    "        print('%s, %s' % (dt.isoformat(), txt))\n",
    "    \n",
    "    def __init__(self):\n",
    "        #计算均线\n",
    "        self.ma1 = bt.indicators.SMA(self.data0, period=self.p.period1)\n",
    "        self.ma2 = bt.indicators.SMA(self.data0, period=self.p.period2)\n",
    "        #计算2条均线交叉信号：ma2 上穿 ma1 时，取值为 +1； ma2 下穿 ma1 时，取值为 -1\n",
    "        self.crossover = bt.indicators.CrossOver(self.ma2, self.ma1) \n",
    "        # 初始化订单\n",
    "        self.order = None\n",
    "        \n",
    "    def next(self):\n",
    "        \n",
    "        # 打印每日的资金和持仓情况\n",
    "        print('date', self.data0.datetime.date(0))\n",
    "        print('当前可用资金', self.broker.getcash())\n",
    "        print('当前总资产', self.broker.getvalue())\n",
    "        print('当前持仓量', self.broker.getposition(self.data).size)\n",
    "        print('当前持仓成本', self.broker.getposition(self.data).price)\n",
    "        \n",
    "        # 取消之前未执行的订单\n",
    "        if self.order:  \n",
    "            self.cancel(self.order)  \n",
    "        \n",
    "        # 检查是否有持仓\n",
    "        if not self.position:  \n",
    "            # 10日均线上穿5日均线，买入\n",
    "            if self.crossover > 0:             \n",
    "                self.order = self.buy(size=100) # 以下一日开盘价买入100股\n",
    "        # # 10日均线下穿5日均线，卖出\n",
    "        elif self.crossover < 0:            \n",
    "            self.order = self.close() # 平仓，以下一日开盘价卖出\n",
    "            \n",
    "    \n",
    "    def notify_order(self, order):\n",
    "        # 未被处理的订单\n",
    "        if order.status in [order.Submitted, order.Accepted]:\n",
    "            return\n",
    "        # 已被处理的订单\n",
    "        if order.status in [order.Completed, order.Canceled, order.Margin]:\n",
    "            if order.isbuy():\n",
    "                self.log(\n",
    "                    'BUY EXECUTED, ref:%.0f，Price: %.4f, Size: %.2f, Cost: %.4f, Comm %.4f, Stock: %s' %\n",
    "                    (order.ref,\n",
    "                     order.executed.price,\n",
    "                     order.executed.size,\n",
    "                     order.executed.value,\n",
    "                     order.executed.comm,\n",
    "                     order.data._name))\n",
    "            else:  # Sell\n",
    "                self.log('SELL EXECUTED, ref:%.0f, Price: %.4f, Size: %.2f, Cost: %.4f, Comm %.4f, Stock: %s' %\n",
    "                        (order.ref,\n",
    "                        order.executed.price,\n",
    "                         order.executed.size,\n",
    "                        order.executed.value,\n",
    "                        order.executed.comm,\n",
    "                        order.data._name))\n",
    "                \n",
    "# 实例化大脑\n",
    "cerebro1= bt.Cerebro()\n",
    "# 设置初始资金\n",
    "cerebro1.broker.set_cash(1000000000000)\n",
    "# 加载数据\n",
    "datafeed1 = bt.feeds.PandasData(dataname=data1, fromdate=datetime.datetime(2019,1,2), todate=datetime.datetime(2021,1,28))\n",
    "cerebro1.adddata(datafeed1, name='600466.SH')\n",
    "# 添加策略\n",
    "cerebro1.addstrategy(TestStrategy)            \n",
    "# 启动回测\n",
    "result = cerebro1.run()  "
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 三、 滑点管理"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 128,
   "metadata": {
    "collapsed": true,
    "jupyter": {
     "outputs_hidden": true
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "date 2019-01-16 close 32.63307367 open 33.00320305\n",
      "当前可用资金 1000000000000.0\n",
      "当前总资产 1000000000000.0\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-01-17, BUY EXECUTED, ref:3933，Price: 32.6363, Size: 100.00, Cost: 3263.6337, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-01-17 close 32.0778796 open 32.63307367\n",
      "当前可用资金 999999996736.3663\n",
      "当前总资产 999999999944.1543\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.636336977367\n",
      "date 2019-01-18 close 32.75645013 open 31.95450314\n",
      "当前可用资金 999999996736.3663\n",
      "当前总资产 1000000000012.0114\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.636336977367\n",
      "date 2019-01-21 close 32.44800898 open 33.06489128\n",
      "当前可用资金 999999996736.3663\n",
      "当前总资产 999999999981.1672\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.636336977367\n",
      "date 2019-01-22 close 32.44800898 open 32.38632075\n",
      "当前可用资金 999999996736.3663\n",
      "当前总资产 999999999981.1672\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.636336977367\n",
      "date 2019-01-23 close 32.50969721 open 32.44800898\n",
      "当前可用资金 999999996736.3663\n",
      "当前总资产 999999999987.336\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.636336977367\n",
      "date 2019-01-24 close 32.38632075 open 32.50969721\n",
      "当前可用资金 999999996736.3663\n",
      "当前总资产 999999999974.9984\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.636336977367\n",
      "date 2019-01-25 close 33.06489128 open 32.94151482\n",
      "当前可用资金 999999996736.3663\n",
      "当前总资产 1000000000042.8555\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.636336977367\n",
      "date 2019-01-28 close 33.86683827 open 33.311644199999996\n",
      "当前可用资金 999999996736.3663\n",
      "当前总资产 1000000000123.0502\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.636336977367\n",
      "2019-01-29, SELL EXECUTED, ref:3934, Price: 33.9251, Size: -100.00, Cost: 3263.6337, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-01-29 close 34.79216172 open 33.928526500000004\n",
      "当前可用资金 1000000000128.8796\n",
      "当前总资产 1000000000128.8796\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-01-30 close 34.23696765 open 34.66878526\n",
      "当前可用资金 1000000000128.8796\n",
      "当前总资产 1000000000128.8796\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-01-31 close 34.23696765 open 34.60709703\n",
      "当前可用资金 1000000000128.8796\n",
      "当前总资产 1000000000128.8796\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-02-01 close 34.73047349 open 34.66878526\n",
      "当前可用资金 1000000000128.8796\n",
      "当前总资产 1000000000128.8796\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-02-11 close 35.71748517 open 34.73047349\n",
      "当前可用资金 1000000000128.8796\n",
      "当前总资产 1000000000128.8796\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-02-12 close 35.65579694 open 35.65579694\n",
      "当前可用资金 1000000000128.8796\n",
      "当前总资产 1000000000128.8796\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-02-13 close 36.396055700000005 open 35.65579694\n",
      "当前可用资金 1000000000128.8796\n",
      "当前总资产 1000000000128.8796\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-02-14 close 36.14930278 open 36.14930278\n",
      "当前可用资金 1000000000128.8796\n",
      "当前总资产 1000000000128.8796\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-02-15 close 34.91553818 open 35.96423809\n",
      "当前可用资金 1000000000128.8796\n",
      "当前总资产 1000000000128.8796\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-02-18 close 35.90254986 open 34.97722641\n",
      "当前可用资金 1000000000128.8796\n",
      "当前总资产 1000000000128.8796\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-02-19 close 35.10060287 open 35.96423809\n",
      "当前可用资金 1000000000128.8796\n",
      "当前总资产 1000000000128.8796\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-02-20 close 35.40904402 open 35.162291100000004\n",
      "当前可用资金 1000000000128.8796\n",
      "当前总资产 1000000000128.8796\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-02-21 close 34.85384995 open 35.47073225\n",
      "当前可用资金 1000000000128.8796\n",
      "当前总资产 1000000000128.8796\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-02-22, BUY EXECUTED, ref:3935，Price: 34.9190, Size: 100.00, Cost: 3491.9030, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-02-22 close 35.162291100000004 open 34.91553818\n",
      "当前可用资金 999999996636.9767\n",
      "当前总资产 1000000000153.2058\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.919029733818\n",
      "date 2019-02-25 close 37.012938 open 35.28566756\n",
      "当前可用资金 999999996636.9767\n",
      "当前总资产 1000000000338.2705\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.919029733818\n",
      "date 2019-02-26 close 37.75319676 open 37.07462623\n",
      "当前可用资金 999999996636.9767\n",
      "当前总资产 1000000000412.2964\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.919029733818\n",
      "2019-02-27, SELL EXECUTED, ref:3936, Price: 37.5064, Size: -100.00, Cost: 3491.9030, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-02-27 close 38.49345552 open 37.50644384\n",
      "当前可用资金 1000000000387.6211\n",
      "当前总资产 1000000000387.6211\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-02-28 close 38.30839083 open 38.8635849\n",
      "当前可用资金 1000000000387.6211\n",
      "当前总资产 1000000000387.6211\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-01 close 38.61683198 open 38.67852021\n",
      "当前可用资金 1000000000387.6211\n",
      "当前总资产 1000000000387.6211\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-04 close 39.17202605 open 38.98696136\n",
      "当前可用资金 1000000000387.6211\n",
      "当前总资产 1000000000387.6211\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-05 close 41.88630817 open 40.40579065\n",
      "当前可用资金 1000000000387.6211\n",
      "当前总资产 1000000000387.6211\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-06 close 42.25643755 open 42.31812578\n",
      "当前可用资金 1000000000387.6211\n",
      "当前总资产 1000000000387.6211\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-07 close 41.45449056 open 41.82461994\n",
      "当前可用资金 1000000000387.6211\n",
      "当前总资产 1000000000387.6211\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-08 close 38.55514375 open 40.65254357\n",
      "当前可用资金 1000000000387.6211\n",
      "当前总资产 1000000000387.6211\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-11 close 39.23371428 open 38.37007906\n",
      "当前可用资金 1000000000387.6211\n",
      "当前总资产 1000000000387.6211\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-12 close 40.52916711 open 39.60384366\n",
      "当前可用资金 1000000000387.6211\n",
      "当前总资产 1000000000387.6211\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-13 close 42.31812578 open 40.59085534\n",
      "当前可用资金 1000000000387.6211\n",
      "当前总资产 1000000000387.6211\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-14 close 41.20773764 open 41.82461994\n",
      "当前可用资金 1000000000387.6211\n",
      "当前总资产 1000000000387.6211\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-03-15, BUY EXECUTED, ref:3937，Price: 41.2119, Size: 100.00, Cost: 4121.1858, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-03-15 close 42.62656693 open 41.20773764\n",
      "当前可用资金 999999996266.4353\n",
      "当前总资产 1000000000529.092\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.211858413764\n",
      "2019-03-18, SELL EXECUTED, ref:3938, Price: 44.1027, Size: -100.00, Cost: 4121.1858, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-03-18 close 44.47721383 open 44.10708445\n",
      "当前可用资金 1000000000676.7026\n",
      "当前总资产 1000000000676.7026\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-19 close 44.60059029 open 44.97071967\n",
      "当前可用资金 1000000000676.7026\n",
      "当前总资产 1000000000676.7026\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-20 close 44.72396675 open 44.4155256\n",
      "当前可用资金 1000000000676.7026\n",
      "当前总资产 1000000000676.7026\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-21 close 46.14279604 open 45.21747259\n",
      "当前可用资金 1000000000676.7026\n",
      "当前总资产 1000000000676.7026\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-22 close 45.71097843 open 46.14279604\n",
      "当前可用资金 1000000000676.7026\n",
      "当前总资产 1000000000676.7026\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-25 close 45.6492902 open 45.032407899999995\n",
      "当前可用资金 1000000000676.7026\n",
      "当前总资产 1000000000676.7026\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-26 close 44.47721383 open 45.89604312\n",
      "当前可用资金 1000000000676.7026\n",
      "当前总资产 1000000000676.7026\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-27 close 45.58760197 open 44.84734321\n",
      "当前可用资金 1000000000676.7026\n",
      "当前总资产 1000000000676.7026\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-28 close 43.49020215 open 45.21747259\n",
      "当前可用资金 1000000000676.7026\n",
      "当前总资产 1000000000676.7026\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-29 close 45.52591374 open 43.55189038\n",
      "当前可用资金 1000000000676.7026\n",
      "当前总资产 1000000000676.7026\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-04-01, BUY EXECUTED, ref:3939，Price: 46.1474, Size: 100.00, Cost: 4614.7410, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-04-01 close 47.74669002 open 46.14279604\n",
      "当前可用资金 999999996061.9615\n",
      "当前总资产 1000000000836.6305\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.147410319604\n",
      "date 2019-04-02 close 47.43824887 open 48.1168194\n",
      "当前可用资金 999999996061.9615\n",
      "当前总资产 1000000000805.7864\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.147410319604\n",
      "2019-04-03, SELL EXECUTED, ref:3940, Price: 47.0634, Size: -100.00, Cost: 4614.7410, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-04-03 close 48.17850763 open 47.06811949\n",
      "当前可用资金 1000000000768.3029\n",
      "当前总资产 1000000000768.3029\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-04-04 close 48.1168194 open 48.17850763\n",
      "当前可用资金 1000000000768.3029\n",
      "当前总资产 1000000000768.3029\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-04-08 close 47.499937100000004 open 48.61032524\n",
      "当前可用资金 1000000000768.3029\n",
      "当前总资产 1000000000768.3029\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-04-09 close 52.18824258 open 47.93175471\n",
      "当前可用资金 1000000000768.3029\n",
      "当前总资产 1000000000768.3029\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-04-10 close 50.46097214 open 51.2012309\n",
      "当前可用资金 1000000000768.3029\n",
      "当前总资产 1000000000768.3029\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-04-11 close 48.733701700000005 open 50.584348600000006\n",
      "当前可用资金 1000000000768.3029\n",
      "当前总资产 1000000000768.3029\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-04-12 close 48.54863701 open 48.733701700000005\n",
      "当前可用资金 1000000000768.3029\n",
      "当前总资产 1000000000768.3029\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-04-15 close 47.99344294 open 49.47396046\n",
      "当前可用资金 1000000000768.3029\n",
      "当前总资产 1000000000768.3029\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-04-16 close 46.63630188 open 47.56162533\n",
      "当前可用资金 1000000000768.3029\n",
      "当前总资产 1000000000768.3029\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-04-17, BUY EXECUTED, ref:3941，Price: 46.6410, Size: 100.00, Cost: 4664.0966, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-04-17 close 46.14279604 open 46.63630188\n",
      "当前可用资金 999999996104.2063\n",
      "当前总资产 1000000000718.486\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.640965510187996\n",
      "date 2019-04-18 close 44.84734321 open 46.08110781\n",
      "当前可用资金 999999996104.2063\n",
      "当前总资产 1000000000588.9407\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.640965510187996\n",
      "date 2019-04-19 close 45.46422551 open 45.032407899999995\n",
      "当前可用资金 999999996104.2063\n",
      "当前总资产 1000000000650.6289\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.640965510187996\n",
      "date 2019-04-22 close 42.74994339 open 44.16877268\n",
      "当前可用资金 999999996104.2063\n",
      "当前总资产 1000000000379.2007\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.640965510187996\n",
      "date 2019-04-23 close 42.93500808 open 43.05838454\n",
      "当前可用资金 999999996104.2063\n",
      "当前总资产 1000000000397.7072\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.640965510187996\n",
      "date 2019-04-24 close 42.93500808 open 43.181761\n",
      "当前可用资金 999999996104.2063\n",
      "当前总资产 1000000000397.7072\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.640965510187996\n",
      "date 2019-04-25 close 42.68825516 open 42.99669631\n",
      "当前可用资金 999999996104.2063\n",
      "当前总资产 1000000000373.0319\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.640965510187996\n",
      "date 2019-04-26 close 42.99669631 open 42.44150224\n",
      "当前可用资金 999999996104.2063\n",
      "当前总资产 1000000000403.876\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.640965510187996\n",
      "date 2019-04-29 close 43.36682569 open 43.49020215\n",
      "当前可用资金 999999996104.2063\n",
      "当前总资产 1000000000440.8889\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.640965510187996\n",
      "date 2019-04-30 close 42.93500808 open 43.55189038\n",
      "当前可用资金 999999996104.2063\n",
      "当前总资产 1000000000397.7072\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.640965510187996\n",
      "date 2019-05-06 close 38.61683198 open 41.26942587\n",
      "当前可用资金 999999996104.2063\n",
      "当前总资产 999999999965.8895\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.640965510187996\n",
      "date 2019-05-07 close 40.15903773 open 39.41877897\n",
      "当前可用资金 999999996104.2063\n",
      "当前总资产 1000000000120.1101\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.640965510187996\n",
      "date 2019-05-08 close 40.1590375 open 39.64500182\n",
      "当前可用资金 999999996104.2063\n",
      "当前总资产 1000000000120.1101\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.640965510187996\n",
      "date 2019-05-09 close 40.22329196 open 40.99434548\n",
      "当前可用资金 999999996104.2063\n",
      "当前总资产 1000000000126.5355\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.640965510187996\n",
      "date 2019-05-10 close 41.1228544 open 39.96627412\n",
      "当前可用资金 999999996104.2063\n",
      "当前总资产 1000000000216.4917\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.640965510187996\n",
      "date 2019-05-13 close 39.90201966 open 40.28754642\n",
      "当前可用资金 999999996104.2063\n",
      "当前总资产 1000000000094.4083\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.640965510187996\n",
      "date 2019-05-14 close 39.5164929 open 39.5164929\n",
      "当前可用资金 999999996104.2063\n",
      "当前总资产 1000000000055.8556\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.640965510187996\n",
      "date 2019-05-15 close 40.35180088 open 39.8377652\n",
      "当前可用资金 999999996104.2063\n",
      "当前总资产 1000000000139.3864\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.640965510187996\n",
      "date 2019-05-16 close 40.60881872 open 40.35180088\n",
      "当前可用资金 999999996104.2063\n",
      "当前总资产 1000000000165.0881\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.640965510187996\n",
      "date 2019-05-17 close 39.96627412 open 40.93009102\n",
      "当前可用资金 999999996104.2063\n",
      "当前总资产 1000000000100.8337\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.640965510187996\n",
      "2019-05-20, SELL EXECUTED, ref:3942, Price: 39.7695, Size: -100.00, Cost: 4664.0966, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-05-20 close 39.38798398 open 39.77351074\n",
      "当前可用资金 1000000000081.1597\n",
      "当前总资产 1000000000081.1597\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-05-21, BUY EXECUTED, ref:3943，Price: 39.2634, Size: 100.00, Cost: 3926.3401, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-05-21 close 39.96627412 open 39.25947506\n",
      "当前可用资金 999999996154.8196\n",
      "当前总资产 1000000000151.447\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.263401007506\n",
      "date 2019-05-22 close 39.38798398 open 39.96627412\n",
      "当前可用资金 999999996154.8196\n",
      "当前总资产 1000000000093.6179\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.263401007506\n",
      "date 2019-05-23 close 38.61693046 open 39.32372952\n",
      "当前可用资金 999999996154.8196\n",
      "当前总资产 1000000000016.5126\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.263401007506\n",
      "date 2019-05-24 close 37.52460464 open 38.61693046\n",
      "当前可用资金 999999996154.8196\n",
      "当前总资产 999999999907.28\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.263401007506\n",
      "date 2019-05-27 close 38.42416708 open 37.71736802\n",
      "当前可用资金 999999996154.8196\n",
      "当前总资产 999999999997.2363\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.263401007506\n",
      "date 2019-05-28 close 38.552676 open 38.552676\n",
      "当前可用资金 999999996154.8196\n",
      "当前总资产 1000000000010.0872\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.263401007506\n",
      "date 2019-05-29 close 37.910131400000004 open 38.35991262\n",
      "当前可用资金 999999996154.8196\n",
      "当前总资产 999999999945.8328\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.263401007506\n",
      "date 2019-05-30 close 38.03864032 open 37.65311356\n",
      "当前可用资金 999999996154.8196\n",
      "当前总资产 999999999958.6836\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.263401007506\n",
      "date 2019-05-31 close 38.03864032 open 38.10289478\n",
      "当前可用资金 999999996154.8196\n",
      "当前总资产 999999999958.6836\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.263401007506\n",
      "date 2019-06-03 close 37.71736802 open 37.78162248\n",
      "当前可用资金 999999996154.8196\n",
      "当前总资产 999999999926.5564\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.263401007506\n",
      "date 2019-06-04 close 36.68929666 open 37.71736802\n",
      "当前可用资金 999999996154.8196\n",
      "当前总资产 999999999823.7493\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.263401007506\n",
      "date 2019-06-05 close 37.52460464 open 37.07482342\n",
      "当前可用资金 999999996154.8196\n",
      "当前总资产 999999999907.28\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.263401007506\n",
      "date 2019-06-06 close 36.6250422 open 37.65311356\n",
      "当前可用资金 999999996154.8196\n",
      "当前总资产 999999999817.3239\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.263401007506\n",
      "date 2019-06-10 close 37.97438586 open 36.9463145\n",
      "当前可用资金 999999996154.8196\n",
      "当前总资产 999999999952.2582\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.263401007506\n",
      "date 2019-06-11 close 39.96627412 open 38.48842154\n",
      "当前可用资金 999999996154.8196\n",
      "当前总资产 1000000000151.447\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.263401007506\n",
      "date 2019-06-12 close 39.96627412 open 39.90201966\n",
      "当前可用资金 999999996154.8196\n",
      "当前总资产 1000000000151.447\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.263401007506\n",
      "2019-06-13, SELL EXECUTED, ref:3944, Price: 40.0908, Size: -100.00, Cost: 3926.3401, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-06-13 close 39.77351074 open 40.09478304\n",
      "当前可用资金 1000000000163.897\n",
      "当前总资产 1000000000163.897\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-06-14 close 40.93009102 open 40.1590375\n",
      "当前可用资金 1000000000163.897\n",
      "当前总资产 1000000000163.897\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-06-17 close 40.54456426 open 40.93009102\n",
      "当前可用资金 1000000000163.897\n",
      "当前总资产 1000000000163.897\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-06-18 close 40.22329196 open 40.41605534\n",
      "当前可用资金 1000000000163.897\n",
      "当前总资产 1000000000163.897\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-06-19 close 40.22329196 open 41.05859994\n",
      "当前可用资金 1000000000163.897\n",
      "当前总资产 1000000000163.897\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-06-20 close 41.1228544 open 40.35180088\n",
      "当前可用资金 1000000000163.897\n",
      "当前总资产 1000000000163.897\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-06-21 close 41.18710886 open 41.25136332\n",
      "当前可用资金 1000000000163.897\n",
      "当前总资产 1000000000163.897\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-06-24 close 41.444126700000005 open 41.25136332\n",
      "当前可用资金 1000000000163.897\n",
      "当前总资产 1000000000163.897\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-06-25 close 40.60881872 open 41.50838116\n",
      "当前可用资金 1000000000163.897\n",
      "当前总资产 1000000000163.897\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-06-26 close 40.60881872 open 40.4803098\n",
      "当前可用资金 1000000000163.897\n",
      "当前总资产 1000000000163.897\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-06-27 close 40.93009102 open 40.99434548\n",
      "当前可用资金 1000000000163.897\n",
      "当前总资产 1000000000163.897\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-06-28 close 39.96627412 open 40.93009102\n",
      "当前可用资金 1000000000163.897\n",
      "当前总资产 1000000000163.897\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-07-01 close 40.73732764 open 40.4803098\n",
      "当前可用资金 1000000000163.897\n",
      "当前总资产 1000000000163.897\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-07-02, BUY EXECUTED, ref:3945，Price: 40.4844, Size: 100.00, Cost: 4048.4358, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-07-02 close 40.28754642 open 40.4803098\n",
      "当前可用资金 999999996115.4612\n",
      "当前总资产 1000000000144.2158\n",
      "当前持仓量 100\n",
      "当前持仓成本 40.48435783098\n",
      "date 2019-07-03 close 41.37987224 open 39.96627412\n",
      "当前可用资金 999999996115.4612\n",
      "当前总资产 1000000000253.4484\n",
      "当前持仓量 100\n",
      "当前持仓成本 40.48435783098\n",
      "date 2019-07-04 close 42.0866713 open 40.99434548\n",
      "当前可用资金 999999996115.4612\n",
      "当前总资产 1000000000324.1283\n",
      "当前持仓量 100\n",
      "当前持仓成本 40.48435783098\n",
      "date 2019-07-05 close 41.1228544 open 41.765399\n",
      "当前可用资金 999999996115.4612\n",
      "当前总资产 1000000000227.7466\n",
      "当前持仓量 100\n",
      "当前持仓成本 40.48435783098\n",
      "2019-07-08, SELL EXECUTED, ref:3946, Price: 40.9260, Size: -100.00, Cost: 4048.4358, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-07-08 close 39.58074736 open 40.93009102\n",
      "当前可用资金 1000000000208.061\n",
      "当前总资产 1000000000208.061\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-07-09 close 39.5164929 open 39.38798398\n",
      "当前可用资金 1000000000208.061\n",
      "当前总资产 1000000000208.061\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-07-10 close 37.71736802 open 39.8377652\n",
      "当前可用资金 1000000000208.061\n",
      "当前总资产 1000000000208.061\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-07-11, BUY EXECUTED, ref:3947，Price: 38.4923, Size: 100.00, Cost: 3849.2270, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-07-11 close 39.5164929 open 38.48842154\n",
      "当前可用资金 999999996358.834\n",
      "当前总资产 1000000000310.4833\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.492270382154\n",
      "date 2019-07-12 close 39.38798398 open 39.64500182\n",
      "当前可用资金 999999996358.834\n",
      "当前总资产 1000000000297.6323\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.492270382154\n",
      "date 2019-07-15 close 40.22329196 open 39.58074736\n",
      "当前可用资金 999999996358.834\n",
      "当前总资产 1000000000381.1632\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.492270382154\n",
      "date 2019-07-16 close 41.25136332 open 40.4803098\n",
      "当前可用资金 999999996358.834\n",
      "当前总资产 1000000000483.9703\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.492270382154\n",
      "date 2019-07-17 close 41.18710886 open 41.444126700000005\n",
      "当前可用资金 999999996358.834\n",
      "当前总资产 1000000000477.5449\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.492270382154\n",
      "2019-07-18, SELL EXECUTED, ref:3948, Price: 41.1830, Size: -100.00, Cost: 3849.2270, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-07-18 close 40.22329196 open 41.18710886\n",
      "当前可用资金 1000000000477.133\n",
      "当前总资产 1000000000477.133\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-07-19 close 41.765399 open 40.60881872\n",
      "当前可用资金 1000000000477.133\n",
      "当前总资产 1000000000477.133\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-07-22 close 40.67307318 open 41.89390792\n",
      "当前可用资金 1000000000477.133\n",
      "当前总资产 1000000000477.133\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-07-23 close 40.67307318 open 41.70114454\n",
      "当前可用资金 1000000000477.133\n",
      "当前总资产 1000000000477.133\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-07-24 close 40.54456426 open 40.93009102\n",
      "当前可用资金 1000000000477.133\n",
      "当前总资产 1000000000477.133\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-07-25 close 40.09478304 open 40.54456426\n",
      "当前可用资金 1000000000477.133\n",
      "当前总资产 1000000000477.133\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-07-26 close 40.99434548 open 40.03052858\n",
      "当前可用资金 1000000000477.133\n",
      "当前总资产 1000000000477.133\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-07-29, BUY EXECUTED, ref:3949，Price: 41.2555, Size: 100.00, Cost: 4125.5488, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-07-29 close 40.22329196 open 41.25136332\n",
      "当前可用资金 999999996351.5842\n",
      "当前总资产 1000000000373.9135\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.255488456332\n",
      "date 2019-07-30 close 40.28754642 open 40.1590375\n",
      "当前可用资金 999999996351.5842\n",
      "当前总资产 1000000000380.3389\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.255488456332\n",
      "date 2019-07-31 close 39.25947506 open 40.09478304\n",
      "当前可用资金 999999996351.5842\n",
      "当前总资产 1000000000277.5317\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.255488456332\n",
      "date 2019-08-01 close 38.48842154 open 39.1952206\n",
      "当前可用资金 999999996351.5842\n",
      "当前总资产 1000000000200.4264\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.255488456332\n",
      "date 2019-08-02 close 37.33184126 open 37.5888591\n",
      "当前可用资金 999999996351.5842\n",
      "当前总资产 1000000000084.7683\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.255488456332\n",
      "date 2019-08-05 close 36.9463145 open 37.13907788\n",
      "当前可用资金 999999996351.5842\n",
      "当前总资产 1000000000046.2157\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.255488456332\n",
      "date 2019-08-06 close 37.2675868 open 36.11100652\n",
      "当前可用资金 999999996351.5842\n",
      "当前总资产 1000000000078.3429\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.255488456332\n",
      "date 2019-08-07 close 37.5888591 open 37.39609572\n",
      "当前可用资金 999999996351.5842\n",
      "当前总资产 1000000000110.4701\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.255488456332\n",
      "date 2019-08-08 close 37.13907788 open 37.5888591\n",
      "当前可用资金 999999996351.5842\n",
      "当前总资产 1000000000065.4921\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.255488456332\n",
      "date 2019-08-09 close 36.6250422 open 37.2675868\n",
      "当前可用资金 999999996351.5842\n",
      "当前总资产 1000000000014.0885\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.255488456332\n",
      "date 2019-08-12 close 36.9463145 open 36.49653328\n",
      "当前可用资金 999999996351.5842\n",
      "当前总资产 1000000000046.2157\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.255488456332\n",
      "date 2019-08-13 close 36.43227882 open 36.75355112\n",
      "当前可用资金 999999996351.5842\n",
      "当前总资产 999999999994.8121\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.255488456332\n",
      "date 2019-08-14 close 36.36802436 open 36.88206004\n",
      "当前可用资金 999999996351.5842\n",
      "当前总资产 999999999988.3867\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.255488456332\n",
      "date 2019-08-15 close 36.56078774 open 35.6612253\n",
      "当前可用资金 999999996351.5842\n",
      "当前总资产 1000000000007.663\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.255488456332\n",
      "date 2019-08-16 close 36.3037699 open 36.6250422\n",
      "当前可用资金 999999996351.5842\n",
      "当前总资产 999999999981.9612\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.255488456332\n",
      "date 2019-08-19 close 37.71736802 open 36.56078774\n",
      "当前可用资金 999999996351.5842\n",
      "当前总资产 1000000000123.321\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.255488456332\n",
      "date 2019-08-20 close 38.10289478 open 37.910131400000004\n",
      "当前可用资金 999999996351.5842\n",
      "当前总资产 1000000000161.8737\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.255488456332\n",
      "2019-08-21, SELL EXECUTED, ref:3950, Price: 37.8421, Size: -100.00, Cost: 4125.5488, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-08-21 close 38.68118492 open 37.84587694\n",
      "当前可用资金 1000000000135.7935\n",
      "当前总资产 1000000000135.7935\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-08-22 close 38.873948299999995 open 38.74543938\n",
      "当前可用资金 1000000000135.7935\n",
      "当前总资产 1000000000135.7935\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-08-23 close 39.58074736 open 39.13096614\n",
      "当前可用资金 1000000000135.7935\n",
      "当前总资产 1000000000135.7935\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-08-26 close 39.1952206 open 39.25947506\n",
      "当前可用资金 1000000000135.7935\n",
      "当前总资产 1000000000135.7935\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-08-27 close 38.93820276 open 39.32372952\n",
      "当前可用资金 1000000000135.7935\n",
      "当前总资产 1000000000135.7935\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-08-28 close 38.93820276 open 38.93820276\n",
      "当前可用资金 1000000000135.7935\n",
      "当前总资产 1000000000135.7935\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-08-29 close 37.78162248 open 39.13096614\n",
      "当前可用资金 1000000000135.7935\n",
      "当前总资产 1000000000135.7935\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-08-30 close 36.68929666 open 38.29565816\n",
      "当前可用资金 1000000000135.7935\n",
      "当前总资产 1000000000135.7935\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-09-02, BUY EXECUTED, ref:3951，Price: 36.6930, Size: 100.00, Cost: 3669.2966, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-09-02 close 37.2675868 open 36.68929666\n",
      "当前可用资金 999999996466.497\n",
      "当前总资产 1000000000193.2556\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.692965589665995\n",
      "date 2019-09-03 close 37.13907788 open 37.33184126\n",
      "当前可用资金 999999996466.497\n",
      "当前总资产 1000000000180.4048\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.692965589665995\n",
      "date 2019-09-04 close 38.42416708 open 36.88206004\n",
      "当前可用资金 999999996466.497\n",
      "当前总资产 1000000000308.9137\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.692965589665995\n",
      "date 2019-09-05 close 38.74543938 open 38.74543938\n",
      "当前可用资金 999999996466.497\n",
      "当前总资产 1000000000341.0409\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.692965589665995\n",
      "date 2019-09-06 close 39.06671168 open 39.1952206\n",
      "当前可用资金 999999996466.497\n",
      "当前总资产 1000000000373.1681\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.692965589665995\n",
      "date 2019-09-09 close 39.58074736 open 39.58074736\n",
      "当前可用资金 999999996466.497\n",
      "当前总资产 1000000000424.5717\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.692965589665995\n",
      "2019-09-10, SELL EXECUTED, ref:3952, Price: 39.5768, Size: -100.00, Cost: 3669.2966, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-09-10 close 39.13096614 open 39.58074736\n",
      "当前可用资金 1000000000424.1759\n",
      "当前总资产 1000000000424.1759\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-09-11 close 38.873948299999995 open 39.06671168\n",
      "当前可用资金 1000000000424.1759\n",
      "当前总资产 1000000000424.1759\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-09-12 close 40.73732764 open 39.13096614\n",
      "当前可用资金 1000000000424.1759\n",
      "当前总资产 1000000000424.1759\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-09-16 close 40.60881872 open 40.8015821\n",
      "当前可用资金 1000000000424.1759\n",
      "当前总资产 1000000000424.1759\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-09-17 close 40.03052858 open 40.54456426\n",
      "当前可用资金 1000000000424.1759\n",
      "当前总资产 1000000000424.1759\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-09-18 close 41.1228544 open 40.28754642\n",
      "当前可用资金 1000000000424.1759\n",
      "当前总资产 1000000000424.1759\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-09-19 close 40.4803098 open 41.1228544\n",
      "当前可用资金 1000000000424.1759\n",
      "当前总资产 1000000000424.1759\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-09-20 close 40.41605534 open 40.4803098\n",
      "当前可用资金 1000000000424.1759\n",
      "当前总资产 1000000000424.1759\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-09-23 close 39.64500182 open 40.4803098\n",
      "当前可用资金 1000000000424.1759\n",
      "当前总资产 1000000000424.1759\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-09-24 close 39.1952206 open 39.64500182\n",
      "当前可用资金 1000000000424.1759\n",
      "当前总资产 1000000000424.1759\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-09-25 close 39.70925628 open 39.45223844\n",
      "当前可用资金 1000000000424.1759\n",
      "当前总资产 1000000000424.1759\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-09-26, BUY EXECUTED, ref:3953，Price: 39.5847, Size: 100.00, Cost: 3958.4705, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-09-26 close 39.1952206 open 39.58074736\n",
      "当前可用资金 999999996465.7053\n",
      "当前总资产 1000000000385.2274\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.584705434735994\n",
      "date 2019-09-27 close 38.68118492 open 39.38798398\n",
      "当前可用资金 999999996465.7053\n",
      "当前总资产 1000000000333.8239\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.584705434735994\n",
      "date 2019-09-30 close 38.61693046 open 38.552676\n",
      "当前可用资金 999999996465.7053\n",
      "当前总资产 1000000000327.3983\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.584705434735994\n",
      "date 2019-10-08 close 40.35180088 open 39.13096614\n",
      "当前可用资金 999999996465.7053\n",
      "当前总资产 1000000000500.8854\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.584705434735994\n",
      "date 2019-10-09 close 41.50838116 open 40.22329196\n",
      "当前可用资金 999999996465.7053\n",
      "当前总资产 1000000000616.5435\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.584705434735994\n",
      "date 2019-10-10 close 42.407943599999996 open 41.57263562\n",
      "当前可用资金 999999996465.7053\n",
      "当前总资产 1000000000706.4996\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.584705434735994\n",
      "2019-10-11, SELL EXECUTED, ref:3954, Price: 43.0462, Size: -100.00, Cost: 3958.4705, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-10-11 close 42.7292159 open 43.050488200000004\n",
      "当前可用资金 1000000000770.3236\n",
      "当前总资产 1000000000770.3236\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-10-14 close 44.3355774 open 43.11474266\n",
      "当前可用资金 1000000000770.3236\n",
      "当前总资产 1000000000770.3236\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-10-15 close 45.42790322 open 44.46408632\n",
      "当前可用资金 1000000000770.3236\n",
      "当前总资产 1000000000770.3236\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-10-16 close 45.9419389 open 45.74917552\n",
      "当前可用资金 1000000000770.3236\n",
      "当前总资产 1000000000770.3236\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-10-17 close 45.10663092 open 46.2632112\n",
      "当前可用资金 1000000000770.3236\n",
      "当前总资产 1000000000770.3236\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-10-18 close 42.21518022 open 45.9419389\n",
      "当前可用资金 1000000000770.3236\n",
      "当前总资产 1000000000770.3236\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-10-21 close 42.66496144 open 42.407943599999996\n",
      "当前可用资金 1000000000770.3236\n",
      "当前总资产 1000000000770.3236\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-10-22 close 42.15092576 open 42.7292159\n",
      "当前可用资金 1000000000770.3236\n",
      "当前总资产 1000000000770.3236\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-10-23 close 41.1228544 open 42.15092576\n",
      "当前可用资金 1000000000770.3236\n",
      "当前总资产 1000000000770.3236\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-10-24, BUY EXECUTED, ref:3955，Price: 41.3840, Size: 100.00, Cost: 4138.4010, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-10-24 close 41.70114454 open 41.37987224\n",
      "当前可用资金 999999996631.9226\n",
      "当前总资产 1000000000802.0371\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.384010227223996\n",
      "date 2019-10-25 close 42.66496144 open 42.27943468\n",
      "当前可用资金 999999996631.9226\n",
      "当前总资产 1000000000898.4187\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.384010227223996\n",
      "date 2019-10-28 close 42.0866713 open 42.47219806\n",
      "当前可用资金 999999996631.9226\n",
      "当前总资产 1000000000840.5897\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.384010227223996\n",
      "date 2019-10-29 close 41.444126700000005 open 41.765399\n",
      "当前可用资金 999999996631.9226\n",
      "当前总资产 1000000000776.3353\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.384010227223996\n",
      "date 2019-10-30 close 40.8015821 open 41.31561778\n",
      "当前可用资金 999999996631.9226\n",
      "当前总资产 1000000000712.0808\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.384010227223996\n",
      "date 2019-10-31 close 41.1228544 open 40.86583656\n",
      "当前可用资金 999999996631.9226\n",
      "当前总资产 1000000000744.208\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.384010227223996\n",
      "date 2019-11-01 close 41.765399 open 40.8015821\n",
      "当前可用资金 999999996631.9226\n",
      "当前总资产 1000000000808.4625\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.384010227223996\n",
      "date 2019-11-04 close 41.95816238 open 41.95816238\n",
      "当前可用资金 999999996631.9226\n",
      "当前总资产 1000000000827.7389\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.384010227223996\n",
      "date 2019-11-05 close 43.30750604 open 42.21518022\n",
      "当前可用资金 999999996631.9226\n",
      "当前总资产 1000000000962.6732\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.384010227223996\n",
      "date 2019-11-06 close 42.02241684 open 43.62877834\n",
      "当前可用资金 999999996631.9226\n",
      "当前总资产 1000000000834.1643\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.384010227223996\n",
      "2019-11-07, SELL EXECUTED, ref:3956, Price: 42.2110, Size: -100.00, Cost: 4138.4010, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-11-07 close 42.407943599999996 open 42.21518022\n",
      "当前可用资金 1000000000853.0184\n",
      "当前总资产 1000000000853.0184\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-11-08 close 41.82965346 open 42.66496144\n",
      "当前可用资金 1000000000853.0184\n",
      "当前总资产 1000000000853.0184\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-11-11 close 40.93009102 open 41.70114454\n",
      "当前可用资金 1000000000853.0184\n",
      "当前总资产 1000000000853.0184\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-11-12 close 40.73732764 open 41.05859994\n",
      "当前可用资金 1000000000853.0184\n",
      "当前总资产 1000000000853.0184\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-11-13, BUY EXECUTED, ref:3957，Price: 40.9943, Size: 100.00, Cost: 4099.4345, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-11-13 close 40.28754642 open 40.99434548\n",
      "当前可用资金 999999996753.5839\n",
      "当前总资产 1000000000782.3385\n",
      "当前持仓量 100\n",
      "当前持仓成本 40.99434548\n",
      "date 2019-11-14 close 40.73732764 open 40.41605534\n",
      "当前可用资金 999999996753.5839\n",
      "当前总资产 1000000000827.3167\n",
      "当前持仓量 100\n",
      "当前持仓成本 40.99434548\n",
      "date 2019-11-15 close 40.41605534 open 40.8015821\n",
      "当前可用资金 999999996753.5839\n",
      "当前总资产 1000000000795.1895\n",
      "当前持仓量 100\n",
      "当前持仓成本 40.99434548\n",
      "date 2019-11-18 close 41.63689008 open 40.1590375\n",
      "当前可用资金 999999996753.5839\n",
      "当前总资产 1000000000917.2728\n",
      "当前持仓量 100\n",
      "当前持仓成本 40.99434548\n",
      "date 2019-11-19 close 42.66496144 open 41.57263562\n",
      "当前可用资金 999999996753.5839\n",
      "当前总资产 1000000001020.08\n",
      "当前持仓量 100\n",
      "当前持仓成本 40.99434548\n",
      "date 2019-11-20 close 42.79347036 open 42.60070698\n",
      "当前可用资金 999999996753.5839\n",
      "当前总资产 1000000001032.9309\n",
      "当前持仓量 100\n",
      "当前持仓成本 40.99434548\n",
      "2019-11-21, SELL EXECUTED, ref:3958, Price: 42.7892, Size: -100.00, Cost: 4099.4345, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-11-21 close 43.17899712 open 42.79347036\n",
      "当前可用资金 1000000001032.5029\n",
      "当前总资产 1000000001032.5029\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-11-22 close 42.53645252 open 43.17899712\n",
      "当前可用资金 1000000001032.5029\n",
      "当前总资产 1000000001032.5029\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-11-25 close 43.88579618 open 42.85772482\n",
      "当前可用资金 1000000001032.5029\n",
      "当前总资产 1000000001032.5029\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-11-26 close 41.89390792 open 43.56452388\n",
      "当前可用资金 1000000001032.5029\n",
      "当前总资产 1000000001032.5029\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-11-27 close 43.6930328 open 42.47219806\n",
      "当前可用资金 1000000001032.5029\n",
      "当前总资产 1000000001032.5029\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-11-28 close 42.92197928 open 43.6930328\n",
      "当前可用资金 1000000001032.5029\n",
      "当前总资产 1000000001032.5029\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-11-29 close 42.53645252 open 42.92197928\n",
      "当前可用资金 1000000001032.5029\n",
      "当前总资产 1000000001032.5029\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-02 close 43.82154172 open 42.66496144\n",
      "当前可用资金 1000000001032.5029\n",
      "当前总资产 1000000001032.5029\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-12-03, BUY EXECUTED, ref:3959，Price: 43.6974, Size: 100.00, Cost: 4369.7402, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-12-03 close 44.52834078 open 43.6930328\n",
      "当前可用资金 999999996662.7627\n",
      "当前总资产 1000000001115.5968\n",
      "当前持仓量 100\n",
      "当前持仓成本 43.69740210328\n",
      "2019-12-04, SELL EXECUTED, ref:3960, Price: 44.0099, Size: -100.00, Cost: 4369.7402, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-12-04 close 43.62877834 open 44.0143051\n",
      "当前可用资金 1000000001063.753\n",
      "当前总资产 1000000001063.753\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-05 close 43.11474266 open 43.56452388\n",
      "当前可用资金 1000000001063.753\n",
      "当前总资产 1000000001063.753\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-06 close 43.050488200000004 open 42.98623374\n",
      "当前可用资金 1000000001063.753\n",
      "当前总资产 1000000001063.753\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-09 close 44.39983186 open 43.11474266\n",
      "当前可用资金 1000000001063.753\n",
      "当前总资产 1000000001063.753\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-10 close 44.20706848 open 44.27132294\n",
      "当前可用资金 1000000001063.753\n",
      "当前总资产 1000000001063.753\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-11 close 44.78535862 open 44.27132294\n",
      "当前可用资金 1000000001063.753\n",
      "当前总资产 1000000001063.753\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-12 close 44.27132294 open 44.59259524\n",
      "当前可用资金 1000000001063.753\n",
      "当前总资产 1000000001063.753\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-13 close 44.78535862 open 44.84961308\n",
      "当前可用资金 1000000001063.753\n",
      "当前总资产 1000000001063.753\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-16 close 44.91386754 open 45.10663092\n",
      "当前可用资金 1000000001063.753\n",
      "当前总资产 1000000001063.753\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-17 close 45.55641214 open 44.84961308\n",
      "当前可用资金 1000000001063.753\n",
      "当前总资产 1000000001063.753\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-18 close 46.00619336 open 45.49215768\n",
      "当前可用资金 1000000001063.753\n",
      "当前总资产 1000000001063.753\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-19 close 45.49215768 open 45.87768444\n",
      "当前可用资金 1000000001063.753\n",
      "当前总资产 1000000001063.753\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-20 close 46.07044782 open 45.6206666\n",
      "当前可用资金 1000000001063.753\n",
      "当前总资产 1000000001063.753\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-23 close 45.36364876 open 46.32746566\n",
      "当前可用资金 1000000001063.753\n",
      "当前总资产 1000000001063.753\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-24 close 44.84961308 open 45.42790322\n",
      "当前可用资金 1000000001063.753\n",
      "当前总资产 1000000001063.753\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-25 close 44.72110416 open 44.84961308\n",
      "当前可用资金 1000000001063.753\n",
      "当前总资产 1000000001063.753\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-26 close 45.55641214 open 45.17088538\n",
      "当前可用资金 1000000001063.753\n",
      "当前总资产 1000000001063.753\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-12-27, BUY EXECUTED, ref:3961，Price: 45.4967, Size: 100.00, Cost: 4549.6707, Comm 0.0000, Stock: 600466.SH\n",
      "date 2019-12-27 close 45.42790322 open 45.49215768\n",
      "当前可用资金 999999996514.0824\n",
      "当前总资产 1000000001056.8727\n",
      "当前持仓量 100\n",
      "当前持仓成本 45.496706895768\n",
      "date 2019-12-30 close 45.9419389 open 45.6206666\n",
      "当前可用资金 999999996514.0824\n",
      "当前总资产 1000000001108.2762\n",
      "当前持仓量 100\n",
      "当前持仓成本 45.496706895768\n",
      "date 2019-12-31 close 47.35553702 open 46.00619336\n",
      "当前可用资金 999999996514.0824\n",
      "当前总资产 1000000001249.6361\n",
      "当前持仓量 100\n",
      "当前持仓成本 45.496706895768\n",
      "2020-01-02, SELL EXECUTED, ref:3962, Price: 48.0623, Size: -100.00, Cost: 4549.6707, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-01-02 close 49.34742528 open 48.06233608\n",
      "当前可用资金 1000000001320.316\n",
      "当前总资产 1000000001320.316\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-01-03 close 48.25509946 open 49.09040744\n",
      "当前可用资金 1000000001320.316\n",
      "当前总资产 1000000001320.316\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-01-06 close 47.48404594 open 48.190845\n",
      "当前可用资金 1000000001320.316\n",
      "当前总资产 1000000001320.316\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-01-07 close 47.80531824 open 47.48404594\n",
      "当前可用资金 1000000001320.316\n",
      "当前总资产 1000000001320.316\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-01-08 close 47.2270281 open 47.48404594\n",
      "当前可用资金 1000000001320.316\n",
      "当前总资产 1000000001320.316\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-01-09 close 48.89764406 open 47.99808162\n",
      "当前可用资金 1000000001320.316\n",
      "当前总资产 1000000001320.316\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-01-10 close 48.96189852 open 49.21891636\n",
      "当前可用资金 1000000001320.316\n",
      "当前总资产 1000000001320.316\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-01-13 close 49.1546619 open 49.02615298\n",
      "当前可用资金 1000000001320.316\n",
      "当前总资产 1000000001320.316\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-01-14 close 48.44786284 open 49.1546619\n",
      "当前可用资金 1000000001320.316\n",
      "当前总资产 1000000001320.316\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-01-15 close 47.67680932 open 48.06233608\n",
      "当前可用资金 1000000001320.316\n",
      "当前总资产 1000000001320.316\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-01-16 close 47.74106378 open 47.99808162\n",
      "当前可用资金 1000000001320.316\n",
      "当前总资产 1000000001320.316\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-01-17 close 47.2270281 open 47.80531824\n",
      "当前可用资金 1000000001320.316\n",
      "当前总资产 1000000001320.316\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-01-20, BUY EXECUTED, ref:3963，Price: 47.1032, Size: 100.00, Cost: 4710.3229, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-01-20 close 46.584483500000005 open 47.09851918\n",
      "当前可用资金 999999996609.9932\n",
      "当前总资产 1000000001268.4415\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.103229031918\n",
      "date 2020-01-21 close 44.978122 open 46.52022904\n",
      "当前可用资金 999999996609.9932\n",
      "当前总资产 1000000001107.8054\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.103229031918\n",
      "date 2020-01-22 close 46.00619336 open 45.17088538\n",
      "当前可用资金 999999996609.9932\n",
      "当前总资产 1000000001210.6125\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.103229031918\n",
      "date 2020-01-23 close 44.14281402 open 45.49215768\n",
      "当前可用资金 999999996609.9932\n",
      "当前总资产 1000000001024.2745\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.103229031918\n",
      "date 2020-02-03 close 39.70925628 open 39.70925628\n",
      "当前可用资金 999999996609.9932\n",
      "当前总资产 1000000000580.9188\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.103229031918\n",
      "date 2020-02-04 close 39.5164929 open 37.07482342\n",
      "当前可用资金 999999996609.9932\n",
      "当前总资产 1000000000561.6425\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.103229031918\n",
      "date 2020-02-05 close 40.1590375 open 39.70925628\n",
      "当前可用资金 999999996609.9932\n",
      "当前总资产 1000000000625.897\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.103229031918\n",
      "date 2020-02-06 close 40.60881872 open 39.8377652\n",
      "当前可用资金 999999996609.9932\n",
      "当前总资产 1000000000670.875\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.103229031918\n",
      "date 2020-02-07 close 40.03052858 open 40.1590375\n",
      "当前可用资金 999999996609.9932\n",
      "当前总资产 1000000000613.046\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.103229031918\n",
      "date 2020-02-10 close 41.05859994 open 40.03052858\n",
      "当前可用资金 999999996609.9932\n",
      "当前总资产 1000000000715.8531\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.103229031918\n",
      "date 2020-02-11 close 43.17899712 open 40.93009102\n",
      "当前可用资金 999999996609.9932\n",
      "当前总资产 1000000000927.8928\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.103229031918\n",
      "date 2020-02-12 close 42.53645252 open 42.7292159\n",
      "当前可用资金 999999996609.9932\n",
      "当前总资产 1000000000863.6384\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.103229031918\n",
      "date 2020-02-13 close 43.95005064 open 42.66496144\n",
      "当前可用资金 999999996609.9932\n",
      "当前总资产 1000000001004.9982\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.103229031918\n",
      "2020-02-14, SELL EXECUTED, ref:3964, Price: 44.2669, Size: -100.00, Cost: 4710.3229, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-02-14 close 45.299394299999996 open 44.27132294\n",
      "当前可用资金 1000000001036.6827\n",
      "当前总资产 1000000001036.6827\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-02-17 close 45.299394299999996 open 45.42790322\n",
      "当前可用资金 1000000001036.6827\n",
      "当前总资产 1000000001036.6827\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-02-18 close 43.95005064 open 45.17088538\n",
      "当前可用资金 1000000001036.6827\n",
      "当前总资产 1000000001036.6827\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-02-19 close 44.14281402 open 43.88579618\n",
      "当前可用资金 1000000001036.6827\n",
      "当前总资产 1000000001036.6827\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-02-20 close 44.07855956 open 44.0143051\n",
      "当前可用资金 1000000001036.6827\n",
      "当前总资产 1000000001036.6827\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-02-21 close 43.50026942 open 43.88579618\n",
      "当前可用资金 1000000001036.6827\n",
      "当前总资产 1000000001036.6827\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-02-24 close 42.47219806 open 43.43601496\n",
      "当前可用资金 1000000001036.6827\n",
      "当前总资产 1000000001036.6827\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-02-25, BUY EXECUTED, ref:3965，Price: 41.6411, Size: 100.00, Cost: 4164.1054, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-02-25 close 42.34368914 open 41.63689008\n",
      "当前可用资金 999999996872.5774\n",
      "当前总资产 1000000001106.9463\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.641053769008\n",
      "date 2020-02-26 close 42.66496144 open 41.95816238\n",
      "当前可用资金 999999996872.5774\n",
      "当前总资产 1000000001139.0735\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.641053769008\n",
      "date 2020-02-27 close 42.66496144 open 42.98623374\n",
      "当前可用资金 999999996872.5774\n",
      "当前总资产 1000000001139.0735\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.641053769008\n",
      "date 2020-02-28 close 41.70114454 open 41.70114454\n",
      "当前可用资金 999999996872.5774\n",
      "当前总资产 1000000001042.6919\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.641053769008\n",
      "date 2020-03-02 close 44.59259524 open 42.15092576\n",
      "当前可用资金 999999996872.5774\n",
      "当前总资产 1000000001331.8369\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.641053769008\n",
      "date 2020-03-03 close 43.82154172 open 45.299394299999996\n",
      "当前可用资金 999999996872.5774\n",
      "当前总资产 1000000001254.7316\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.641053769008\n",
      "date 2020-03-04 close 45.74917552 open 43.75728726\n",
      "当前可用资金 999999996872.5774\n",
      "当前总资产 1000000001447.495\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.641053769008\n",
      "2020-03-05, SELL EXECUTED, ref:3966, Price: 45.3591, Size: -100.00, Cost: 4164.1054, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-03-05 close 45.87768444 open 45.36364876\n",
      "当前可用资金 1000000001408.4886\n",
      "当前总资产 1000000001408.4886\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-03-06 close 44.0143051 open 45.10663092\n",
      "当前可用资金 1000000001408.4886\n",
      "当前总资产 1000000001408.4886\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-03-09 close 41.70114454 open 42.92197928\n",
      "当前可用资金 1000000001408.4886\n",
      "当前总资产 1000000001408.4886\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-03-10 close 42.53645252 open 41.31561778\n",
      "当前可用资金 1000000001408.4886\n",
      "当前总资产 1000000001408.4886\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-03-11 close 43.24325158 open 43.050488200000004\n",
      "当前可用资金 1000000001408.4886\n",
      "当前总资产 1000000001408.4886\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-03-12, BUY EXECUTED, ref:3967，Price: 42.7977, Size: 100.00, Cost: 4279.7750, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-03-12 close 41.95816238 open 42.79347036\n",
      "当前可用资金 999999997128.7136\n",
      "当前总资产 1000000001324.5299\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.797749707036\n",
      "date 2020-03-13 close 41.05859994 open 40.03052858\n",
      "当前可用资金 999999997128.7136\n",
      "当前总资产 1000000001234.5736\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.797749707036\n",
      "date 2020-03-16 close 40.1590375 open 41.18710886\n",
      "当前可用资金 999999997128.7136\n",
      "当前总资产 1000000001144.6174\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.797749707036\n",
      "date 2020-03-17 close 39.96627412 open 39.96627412\n",
      "当前可用资金 999999997128.7136\n",
      "当前总资产 1000000001125.3411\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.797749707036\n",
      "date 2020-03-18 close 38.552676 open 40.1590375\n",
      "当前可用资金 999999997128.7136\n",
      "当前总资产 1000000000983.9812\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.797749707036\n",
      "date 2020-03-19 close 37.97438586 open 38.42416708\n",
      "当前可用资金 999999997128.7136\n",
      "当前总资产 1000000000926.1522\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.797749707036\n",
      "date 2020-03-20 close 38.42416708 open 38.16714924\n",
      "当前可用资金 999999997128.7136\n",
      "当前总资产 1000000000971.1304\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.797749707036\n",
      "date 2020-03-23 close 36.68929666 open 36.75355112\n",
      "当前可用资金 999999997128.7136\n",
      "当前总资产 1000000000797.6433\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.797749707036\n",
      "date 2020-03-24 close 38.16714924 open 37.33184126\n",
      "当前可用资金 999999997128.7136\n",
      "当前总资产 1000000000945.4286\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.797749707036\n",
      "date 2020-03-25 close 39.8377652 open 38.93820276\n",
      "当前可用资金 999999997128.7136\n",
      "当前总资产 1000000001112.4901\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.797749707036\n",
      "date 2020-03-26 close 39.45223844 open 39.38798398\n",
      "当前可用资金 999999997128.7136\n",
      "当前总资产 1000000001073.9375\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.797749707036\n",
      "date 2020-03-27 close 40.35180088 open 40.1590375\n",
      "当前可用资金 999999997128.7136\n",
      "当前总资产 1000000001163.8937\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.797749707036\n",
      "date 2020-03-30 close 39.70925628 open 39.5164929\n",
      "当前可用资金 999999997128.7136\n",
      "当前总资产 1000000001099.6393\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.797749707036\n",
      "2020-03-31, SELL EXECUTED, ref:3968, Price: 40.1550, Size: -100.00, Cost: 4279.7750, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-03-31 close 38.74543938 open 40.1590375\n",
      "当前可用资金 1000000001144.2158\n",
      "当前总资产 1000000001144.2158\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-04-01 close 38.48842154 open 38.93820276\n",
      "当前可用资金 1000000001144.2158\n",
      "当前总资产 1000000001144.2158\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-04-02 close 38.93820276 open 38.552676\n",
      "当前可用资金 1000000001144.2158\n",
      "当前总资产 1000000001144.2158\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-04-03 close 38.68118492 open 39.00245722\n",
      "当前可用资金 1000000001144.2158\n",
      "当前总资产 1000000001144.2158\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-04-07 close 39.45223844 open 39.25947506\n",
      "当前可用资金 1000000001144.2158\n",
      "当前总资产 1000000001144.2158\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-04-08, BUY EXECUTED, ref:3969，Price: 39.2634, Size: 100.00, Cost: 3926.3401, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-04-08 close 39.8377652 open 39.25947506\n",
      "当前可用资金 999999997217.8757\n",
      "当前总资产 1000000001201.6522\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.263401007506\n",
      "date 2020-04-09 close 39.58074736 open 39.96627412\n",
      "当前可用资金 999999997217.8757\n",
      "当前总资产 1000000001175.9504\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.263401007506\n",
      "date 2020-04-10 close 39.45223844 open 39.77351074\n",
      "当前可用资金 999999997217.8757\n",
      "当前总资产 1000000001163.0996\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.263401007506\n",
      "2020-04-13, SELL EXECUTED, ref:3970, Price: 39.4483, Size: -100.00, Cost: 3926.3401, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-04-13 close 39.5164929 open 39.45223844\n",
      "当前可用资金 1000000001162.7051\n",
      "当前总资产 1000000001162.7051\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-04-14 close 40.09478304 open 39.5164929\n",
      "当前可用资金 1000000001162.7051\n",
      "当前总资产 1000000001162.7051\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-04-15 close 39.64500182 open 40.1590375\n",
      "当前可用资金 1000000001162.7051\n",
      "当前总资产 1000000001162.7051\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-04-16 close 39.58074736 open 39.5164929\n",
      "当前可用资金 1000000001162.7051\n",
      "当前总资产 1000000001162.7051\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-04-17 close 39.58074736 open 39.90201966\n",
      "当前可用资金 1000000001162.7051\n",
      "当前总资产 1000000001162.7051\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-04-20 close 38.2314037 open 39.58074736\n",
      "当前可用资金 1000000001162.7051\n",
      "当前总资产 1000000001162.7051\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-04-21, BUY EXECUTED, ref:3971，Price: 37.9101, Size: 100.00, Cost: 3791.0131, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-04-21 close 37.07482342 open 37.910131400000004\n",
      "当前可用资金 999999997371.6919\n",
      "当前总资产 1000000001079.1742\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "date 2020-04-22 close 37.13907788 open 36.68929666\n",
      "当前可用资金 999999997371.6919\n",
      "当前总资产 1000000001085.5997\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "date 2020-04-23 close 36.75355112 open 37.07482342\n",
      "当前可用资金 999999997371.6919\n",
      "当前总资产 1000000001047.047\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "date 2020-04-24 close 36.04675206 open 36.88206004\n",
      "当前可用资金 999999997371.6919\n",
      "当前总资产 1000000000976.3671\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "date 2020-04-27 close 36.43227882 open 36.11100652\n",
      "当前可用资金 999999997371.6919\n",
      "当前总资产 1000000001014.9198\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "date 2020-04-28 close 35.40420746 open 36.43227882\n",
      "当前可用资金 999999997371.6919\n",
      "当前总资产 1000000000912.1127\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "date 2020-04-29 close 36.04675206 open 35.40420746\n",
      "当前可用资金 999999997371.6919\n",
      "当前总资产 1000000000976.3671\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "date 2020-04-30 close 37.39609572 open 36.04675206\n",
      "当前可用资金 999999997371.6919\n",
      "当前总资产 1000000001111.3015\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "date 2020-05-06 close 36.17526098 open 36.6250422\n",
      "当前可用资金 999999997371.6919\n",
      "当前总资产 1000000000989.218\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "date 2020-05-07 close 35.53271638 open 35.91824314\n",
      "当前可用资金 999999997371.6919\n",
      "当前总资产 1000000000924.9635\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "date 2020-05-08 close 35.9824976 open 35.6612253\n",
      "当前可用资金 999999997371.6919\n",
      "当前总资产 1000000000969.9417\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "date 2020-05-11 close 35.9824976 open 36.36802436\n",
      "当前可用资金 999999997371.6919\n",
      "当前总资产 1000000000969.9417\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "2020-05-12, SELL EXECUTED, ref:3972, Price: 35.9789, Size: -100.00, Cost: 3791.0131, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-05-12 close 35.339953 open 35.9824976\n",
      "当前可用资金 1000000000969.5818\n",
      "当前总资产 1000000000969.5818\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-05-13, BUY EXECUTED, ref:3973，Price: 35.2114, Size: 100.00, Cost: 3521.1444, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-05-13 close 35.018680700000004 open 35.21144408\n",
      "当前可用资金 999999997448.4374\n",
      "当前总资产 1000000000950.3054\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-14 close 34.6974084 open 35.018680700000004\n",
      "当前可用资金 999999997448.4374\n",
      "当前总资产 1000000000918.1782\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-15 close 34.63315394 open 34.6974084\n",
      "当前可用资金 999999997448.4374\n",
      "当前总资产 1000000000911.7528\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-18 close 34.56889948 open 34.89017178\n",
      "当前可用资金 999999997448.4374\n",
      "当前总资产 1000000000905.3273\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-19 close 33.92635488 open 34.76166286\n",
      "当前可用资金 999999997448.4374\n",
      "当前总资产 1000000000841.0729\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-20 close 33.54082812 open 33.733591499999996\n",
      "当前可用资金 999999997448.4374\n",
      "当前总资产 1000000000802.5201\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-21 close 32.89828352 open 33.66933704\n",
      "当前可用资金 999999997448.4374\n",
      "当前总资产 1000000000738.2657\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-22 close 32.38424784 open 32.89828352\n",
      "当前可用资金 999999997448.4374\n",
      "当前总资产 1000000000686.8622\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-25 close 32.96253798 open 32.4485023\n",
      "当前可用资金 999999997448.4374\n",
      "当前总资产 1000000000744.6912\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-26 close 32.96253798 open 33.02679244\n",
      "当前可用资金 999999997448.4374\n",
      "当前总资产 1000000000744.6912\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-27 close 33.21955582 open 32.89828352\n",
      "当前可用资金 999999997448.4374\n",
      "当前总资产 1000000000770.393\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-28 close 33.28381028 open 33.15530136\n",
      "当前可用资金 999999997448.4374\n",
      "当前总资产 1000000000776.8184\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-29 close 32.89828352 open 33.21955582\n",
      "当前可用资金 999999997448.4374\n",
      "当前总资产 1000000000738.2657\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-06-01 close 33.34806474 open 32.83402906\n",
      "当前可用资金 999999997448.4374\n",
      "当前总资产 1000000000783.2439\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-06-02 close 34.24762718 open 33.28381028\n",
      "当前可用资金 999999997448.4374\n",
      "当前总资产 1000000000873.2001\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "2020-06-03, SELL EXECUTED, ref:3974, Price: 34.3085, Size: -100.00, Cost: 3521.1444, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-06-03 close 33.733591499999996 open 34.31188164\n",
      "当前可用资金 1000000000879.2825\n",
      "当前总资产 1000000000879.2825\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-06-04 close 33.54082812 open 33.86210042\n",
      "当前可用资金 1000000000879.2825\n",
      "当前总资产 1000000000879.2825\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-06-05 close 33.34806474 open 33.66933704\n",
      "当前可用资金 1000000000879.2825\n",
      "当前总资产 1000000000879.2825\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-06-08 close 33.92635488 open 33.54082812\n",
      "当前可用资金 1000000000879.2825\n",
      "当前总资产 1000000000879.2825\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-06-09 close 33.47657366 open 33.86210042\n",
      "当前可用资金 1000000000879.2825\n",
      "当前总资产 1000000000879.2825\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-06-10 close 33.21955582 open 33.60508258\n",
      "当前可用资金 1000000000879.2825\n",
      "当前总资产 1000000000879.2825\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-06-11 close 32.769774600000005 open 33.21955582\n",
      "当前可用资金 1000000000879.2825\n",
      "当前总资产 1000000000879.2825\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-06-12, BUY EXECUTED, ref:3975，Price: 32.2590, Size: 100.00, Cost: 3225.8964, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-06-12 close 32.70552014 open 32.25573892\n",
      "当前可用资金 999999997653.386\n",
      "当前总资产 1000000000923.938\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.258964493892\n",
      "date 2020-06-15 close 32.51275676 open 32.64126568\n",
      "当前可用资金 999999997653.386\n",
      "当前总资产 1000000000904.6616\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.258964493892\n",
      "date 2020-06-16 close 33.02679244 open 32.769774600000005\n",
      "当前可用资金 999999997653.386\n",
      "当前总资产 1000000000956.0652\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.258964493892\n",
      "date 2020-06-17 close 32.83402906 open 32.96253798\n",
      "当前可用资金 999999997653.386\n",
      "当前总资产 1000000000936.789\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.258964493892\n",
      "date 2020-06-18 close 34.82591732 open 32.83402906\n",
      "当前可用资金 999999997653.386\n",
      "当前总资产 1000000001135.9777\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.258964493892\n",
      "date 2020-06-19 close 34.63315394 open 34.76166286\n",
      "当前可用资金 999999997653.386\n",
      "当前总资产 1000000001116.7014\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.258964493892\n",
      "2020-06-22, SELL EXECUTED, ref:3976, Price: 34.6297, Size: -100.00, Cost: 3225.8964, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-06-22 close 34.376136100000004 open 34.63315394\n",
      "当前可用资金 1000000001116.3551\n",
      "当前总资产 1000000001116.3551\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-06-23 close 33.60508258 open 35.018680700000004\n",
      "当前可用资金 1000000001116.3551\n",
      "当前总资产 1000000001116.3551\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-06-24 close 34.95442624 open 33.79784596\n",
      "当前可用资金 1000000001116.3551\n",
      "当前总资产 1000000001116.3551\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-06-29 close 34.44039056 open 35.21144408\n",
      "当前可用资金 1000000001116.3551\n",
      "当前总资产 1000000001116.3551\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-06-30 close 34.63315394 open 34.56889948\n",
      "当前可用资金 1000000001116.3551\n",
      "当前总资产 1000000001116.3551\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-07-01 close 36.75355112 open 34.89017178\n",
      "当前可用资金 1000000001116.3551\n",
      "当前总资产 1000000001116.3551\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-07-02 close 38.29565816 open 36.75355112\n",
      "当前可用资金 1000000001116.3551\n",
      "当前总资产 1000000001116.3551\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-07-03 close 38.61693046 open 38.68118492\n",
      "当前可用资金 1000000001116.3551\n",
      "当前总资产 1000000001116.3551\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-07-06 close 41.04736896 open 39.29205384\n",
      "当前可用资金 1000000001116.3551\n",
      "当前总资产 1000000001116.3551\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-07-07 close 40.1697114 open 41.519953799999996\n",
      "当前可用资金 1000000001116.3551\n",
      "当前总资产 1000000001116.3551\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-07-08 close 40.1697114 open 39.832150799999994\n",
      "当前可用资金 1000000001116.3551\n",
      "当前总资产 1000000001116.3551\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-07-09 close 40.8448326 open 40.23722352\n",
      "当前可用资金 1000000001116.3551\n",
      "当前总资产 1000000001116.3551\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-07-10 close 39.22454172 open 40.30473564\n",
      "当前可用资金 1000000001116.3551\n",
      "当前总资产 1000000001116.3551\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-07-13 close 39.832150799999994 open 39.35956596\n",
      "当前可用资金 1000000001116.3551\n",
      "当前总资产 1000000001116.3551\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-07-14 close 39.29205384 open 39.89966292\n",
      "当前可用资金 1000000001116.3551\n",
      "当前总资产 1000000001116.3551\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-07-15 close 38.88698112 open 39.69712656\n",
      "当前可用资金 1000000001116.3551\n",
      "当前总资产 1000000001116.3551\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-07-16, BUY EXECUTED, ref:3977，Price: 38.7558, Size: 100.00, Cost: 3875.5832, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-07-16 close 37.60425084 open 38.75195688\n",
      "当前可用资金 999999997240.7719\n",
      "当前总资产 1000000001001.1969\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.755832075688\n",
      "date 2020-07-17 close 36.92912964 open 37.60425084\n",
      "当前可用资金 999999997240.7719\n",
      "当前总资产 1000000000933.6848\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.755832075688\n",
      "date 2020-07-20 close 38.27937204 open 37.26669024\n",
      "当前可用资金 999999997240.7719\n",
      "当前总资产 1000000001068.7091\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.755832075688\n",
      "date 2020-07-21 close 38.21185992 open 38.54942052\n",
      "当前可用资金 999999997240.7719\n",
      "当前总资产 1000000001061.9579\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.755832075688\n",
      "date 2020-07-22 close 38.14434779999999 open 38.21185992\n",
      "当前可用资金 999999997240.7719\n",
      "当前总资产 1000000001055.2067\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.755832075688\n",
      "date 2020-07-23 close 37.60425084 open 37.8067872\n",
      "当前可用资金 999999997240.7719\n",
      "当前总资产 1000000001001.1969\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.755832075688\n",
      "date 2020-07-24 close 36.25400844 open 37.33420236\n",
      "当前可用资金 999999997240.7719\n",
      "当前总资产 1000000000866.1727\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.755832075688\n",
      "date 2020-07-27 close 35.57888724 open 36.456544799999996\n",
      "当前可用资金 999999997240.7719\n",
      "当前总资产 1000000000798.6605\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.755832075688\n",
      "date 2020-07-28 close 35.98395996 open 35.71391148\n",
      "当前可用资金 999999997240.7719\n",
      "当前总资产 1000000000839.1678\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.755832075688\n",
      "date 2020-07-29 close 36.38903268 open 35.84893572\n",
      "当前可用资金 999999997240.7719\n",
      "当前总资产 1000000000879.6752\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.755832075688\n",
      "date 2020-07-30 close 36.05147208 open 36.32152056\n",
      "当前可用资金 999999997240.7719\n",
      "当前总资产 1000000000845.9191\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.755832075688\n",
      "date 2020-07-31 close 36.1189842 open 35.84893572\n",
      "当前可用资金 999999997240.7719\n",
      "当前总资产 1000000000852.6703\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.755832075688\n",
      "date 2020-08-03 close 36.7941054 open 36.38903268\n",
      "当前可用资金 999999997240.7719\n",
      "当前总资产 1000000000920.1824\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.755832075688\n",
      "date 2020-08-04 close 37.06415388 open 36.99664176\n",
      "当前可用资金 999999997240.7719\n",
      "当前总资产 1000000000947.1873\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.755832075688\n",
      "date 2020-08-05 close 36.456544799999996 open 36.92912964\n",
      "当前可用资金 999999997240.7719\n",
      "当前总资产 1000000000886.4264\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.755832075688\n",
      "2020-08-06, SELL EXECUTED, ref:3978, Price: 36.4529, Size: -100.00, Cost: 3875.5832, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-08-06 close 36.18649632 open 36.456544799999996\n",
      "当前可用资金 1000000000886.0618\n",
      "当前总资产 1000000000886.0618\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-08-07 close 35.51137512 open 36.18649632\n",
      "当前可用资金 1000000000886.0618\n",
      "当前总资产 1000000000886.0618\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-08-10 close 36.456544799999996 open 35.64639936\n",
      "当前可用资金 1000000000886.0618\n",
      "当前总资产 1000000000886.0618\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-08-11 close 35.781423600000004 open 36.456544799999996\n",
      "当前可用资金 1000000000886.0618\n",
      "当前总资产 1000000000886.0618\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-08-12, BUY EXECUTED, ref:3979，Price: 35.7850, Size: 100.00, Cost: 3578.5002, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-08-12 close 35.91644784 open 35.781423600000004\n",
      "当前可用资金 999999997307.5616\n",
      "当前总资产 1000000000899.2064\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.78500174236\n",
      "date 2020-08-13 close 36.05147208 open 35.98395996\n",
      "当前可用资金 999999997307.5616\n",
      "当前总资产 1000000000912.7089\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.78500174236\n",
      "date 2020-08-14 close 36.86161752 open 36.05147208\n",
      "当前可用资金 999999997307.5616\n",
      "当前总资产 1000000000993.7234\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.78500174236\n",
      "date 2020-08-17 close 37.67176296 open 36.99664176\n",
      "当前可用资金 999999997307.5616\n",
      "当前总资产 1000000001074.7379\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.78500174236\n",
      "2020-08-18, SELL EXECUTED, ref:3980, Price: 37.6680, Size: -100.00, Cost: 3578.5002, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-08-18 close 37.06415388 open 37.67176296\n",
      "当前可用资金 1000000001074.3612\n",
      "当前总资产 1000000001074.3612\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-08-19 close 36.59156904 open 36.99664176\n",
      "当前可用资金 1000000001074.3612\n",
      "当前总资产 1000000001074.3612\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-08-20 close 36.52405692 open 36.456544799999996\n",
      "当前可用资金 1000000001074.3612\n",
      "当前总资产 1000000001074.3612\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-08-21 close 36.65908116 open 36.59156904\n",
      "当前可用资金 1000000001074.3612\n",
      "当前总资产 1000000001074.3612\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-08-24 close 36.65908116 open 36.65908116\n",
      "当前可用资金 1000000001074.3612\n",
      "当前总资产 1000000001074.3612\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-08-25 close 36.25400844 open 36.65908116\n",
      "当前可用资金 1000000001074.3612\n",
      "当前总资产 1000000001074.3612\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-08-26, BUY EXECUTED, ref:3981，Price: 36.3252, Size: 100.00, Cost: 3632.5153, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-08-26 close 35.51137512 open 36.32152056\n",
      "当前可用资金 999999997441.846\n",
      "当前总资产 1000000000992.9834\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.325152712056\n",
      "date 2020-08-27 close 35.51137512 open 35.51137512\n",
      "当前可用资金 999999997441.846\n",
      "当前总资产 1000000000992.9834\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.325152712056\n",
      "date 2020-08-28 close 36.456544799999996 open 35.781423600000004\n",
      "当前可用资金 999999997441.846\n",
      "当前总资产 1000000001087.5005\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.325152712056\n",
      "date 2020-08-31 close 37.131665999999996 open 36.7941054\n",
      "当前可用资金 999999997441.846\n",
      "当前总资产 1000000001155.0126\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.325152712056\n",
      "date 2020-09-01 close 36.7941054 open 37.131665999999996\n",
      "当前可用资金 999999997441.846\n",
      "当前总资产 1000000001121.2565\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.325152712056\n",
      "date 2020-09-02 close 36.7941054 open 36.99664176\n",
      "当前可用资金 999999997441.846\n",
      "当前总资产 1000000001121.2565\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.325152712056\n",
      "2020-09-03, SELL EXECUTED, ref:3982, Price: 36.8579, Size: -100.00, Cost: 3632.5153, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-09-03 close 36.32152056 open 36.86161752\n",
      "当前可用资金 1000000001127.639\n",
      "当前总资产 1000000001127.639\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-09-04 close 36.05147208 open 35.91644784\n",
      "当前可用资金 1000000001127.639\n",
      "当前总资产 1000000001127.639\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-09-07 close 35.64639936 open 36.05147208\n",
      "当前可用资金 1000000001127.639\n",
      "当前总资产 1000000001127.639\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-09-08 close 35.98395996 open 35.781423600000004\n",
      "当前可用资金 1000000001127.639\n",
      "当前总资产 1000000001127.639\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-09-09, BUY EXECUTED, ref:3983，Price: 35.7175, Size: 100.00, Cost: 3571.7483, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-09-09 close 36.18649632 open 35.71391148\n",
      "当前可用资金 999999997555.8907\n",
      "当前总资产 1000000001174.5404\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.717482871148\n",
      "date 2020-09-10 close 36.86161752 open 36.456544799999996\n",
      "当前可用资金 999999997555.8907\n",
      "当前总资产 1000000001242.0525\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.717482871148\n",
      "date 2020-09-11 close 36.32152056 open 36.52405692\n",
      "当前可用资金 999999997555.8907\n",
      "当前总资产 1000000001188.0428\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.717482871148\n",
      "date 2020-09-14 close 36.1189842 open 36.38903268\n",
      "当前可用资金 999999997555.8907\n",
      "当前总资产 1000000001167.7892\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.717482871148\n",
      "date 2020-09-15 close 36.38903268 open 36.1189842\n",
      "当前可用资金 999999997555.8907\n",
      "当前总资产 1000000001194.7941\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.717482871148\n",
      "2020-09-16, SELL EXECUTED, ref:3984, Price: 36.3854, Size: -100.00, Cost: 3571.7483, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-09-16 close 37.53673872 open 36.38903268\n",
      "当前可用资金 1000000001194.4302\n",
      "当前总资产 1000000001194.4302\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-09-17 close 36.7941054 open 37.60425084\n",
      "当前可用资金 1000000001194.4302\n",
      "当前总资产 1000000001194.4302\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-09-18 close 38.54942052 open 36.86161752\n",
      "当前可用资金 1000000001194.4302\n",
      "当前总资产 1000000001194.4302\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-09-21 close 37.87429932 open 38.34688416\n",
      "当前可用资金 1000000001194.4302\n",
      "当前总资产 1000000001194.4302\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-09-22 close 37.131665999999996 open 37.53673872\n",
      "当前可用资金 1000000001194.4302\n",
      "当前总资产 1000000001194.4302\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-09-23 close 36.7941054 open 37.33420236\n",
      "当前可用资金 1000000001194.4302\n",
      "当前总资产 1000000001194.4302\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-09-24 close 35.98395996 open 36.59156904\n",
      "当前可用资金 1000000001194.4302\n",
      "当前总资产 1000000001194.4302\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-09-25 close 34.70122968 open 35.98395996\n",
      "当前可用资金 1000000001194.4302\n",
      "当前总资产 1000000001194.4302\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-09-28, BUY EXECUTED, ref:3985，Price: 34.6372, Size: 100.00, Cost: 3463.7181, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-09-28 close 35.03879028 open 34.63371756\n",
      "当前可用资金 999999997730.712\n",
      "当前总资产 1000000001234.5911\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.637180931756\n",
      "date 2020-09-29 close 34.431181200000005 open 35.03879028\n",
      "当前可用资金 999999997730.712\n",
      "当前总资产 1000000001173.8302\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.637180931756\n",
      "date 2020-09-30 close 33.95859636 open 34.431181200000005\n",
      "当前可用资金 999999997730.712\n",
      "当前总资产 1000000001126.5717\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.637180931756\n",
      "date 2020-10-09 close 34.36366908 open 34.29615696\n",
      "当前可用资金 999999997730.712\n",
      "当前总资产 1000000001167.079\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.637180931756\n",
      "date 2020-10-12 close 35.443863 open 34.36366908\n",
      "当前可用资金 999999997730.712\n",
      "当前总资产 1000000001275.0984\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.637180931756\n",
      "date 2020-10-13 close 35.1063024 open 35.443863\n",
      "当前可用资金 999999997730.712\n",
      "当前总资产 1000000001241.3423\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.637180931756\n",
      "date 2020-10-14 close 34.63371756 open 34.90376604\n",
      "当前可用资金 999999997730.712\n",
      "当前总资产 1000000001194.0837\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.637180931756\n",
      "date 2020-10-15 close 34.63371756 open 34.70122968\n",
      "当前可用资金 999999997730.712\n",
      "当前总资产 1000000001194.0837\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.637180931756\n",
      "2020-10-16, SELL EXECUTED, ref:3986, Price: 34.4952, Size: -100.00, Cost: 3463.7181, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-10-16 close 34.768741799999994 open 34.49869332\n",
      "当前可用资金 1000000001180.2363\n",
      "当前总资产 1000000001180.2363\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-10-19 close 34.431181200000005 open 34.83625392\n",
      "当前可用资金 1000000001180.2363\n",
      "当前总资产 1000000001180.2363\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-10-20 close 34.16113272 open 34.49869332\n",
      "当前可用资金 1000000001180.2363\n",
      "当前总资产 1000000001180.2363\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-10-21, BUY EXECUTED, ref:3987，Price: 34.2996, Size: 100.00, Cost: 3429.9587, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-10-21 close 34.22864484 open 34.29615696\n",
      "当前可用资金 999999997750.2777\n",
      "当前总资产 1000000001173.1422\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2020-10-22 close 34.36366908 open 34.16113272\n",
      "当前可用资金 999999997750.2777\n",
      "当前总资产 1000000001186.6447\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2020-10-23 close 34.56620544 open 34.49869332\n",
      "当前可用资金 999999997750.2777\n",
      "当前总资产 1000000001206.8982\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2020-10-26 close 34.22864484 open 34.431181200000005\n",
      "当前可用资金 999999997750.2777\n",
      "当前总资产 1000000001173.1422\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2020-10-27 close 33.82357212 open 34.0936206\n",
      "当前可用资金 999999997750.2777\n",
      "当前总资产 1000000001132.6349\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2020-10-28 close 33.48601152 open 33.75606\n",
      "当前可用资金 999999997750.2777\n",
      "当前总资产 1000000001098.8789\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2020-10-29 close 33.68854788 open 33.4184994\n",
      "当前可用资金 999999997750.2777\n",
      "当前总资产 1000000001119.1324\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2020-10-30 close 33.28347516 open 33.62103576\n",
      "当前可用资金 999999997750.2777\n",
      "当前总资产 1000000001078.6252\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2020-11-02 close 33.82357212 open 33.62103576\n",
      "当前可用资金 999999997750.2777\n",
      "当前总资产 1000000001132.6349\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2020-11-03 close 34.0936206 open 34.02610848\n",
      "当前可用资金 999999997750.2777\n",
      "当前总资产 1000000001159.6398\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2020-11-04 close 33.55352364 open 34.0936206\n",
      "当前可用资金 999999997750.2777\n",
      "当前总资产 1000000001105.6301\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2020-11-05 close 34.0936206 open 33.82357212\n",
      "当前可用资金 999999997750.2777\n",
      "当前总资产 1000000001159.6398\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2020-11-06 close 34.22864484 open 34.0936206\n",
      "当前可用资金 999999997750.2777\n",
      "当前总资产 1000000001173.1422\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "2020-11-09, SELL EXECUTED, ref:3988, Price: 34.2286, Size: -100.00, Cost: 3429.9587, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-11-09 close 34.56620544 open 34.22864484\n",
      "当前可用资金 1000000001173.1422\n",
      "当前总资产 1000000001173.1422\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-10 close 34.16113272 open 34.70122968\n",
      "当前可用资金 1000000001173.1422\n",
      "当前总资产 1000000001173.1422\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-11 close 34.768741799999994 open 34.0936206\n",
      "当前可用资金 1000000001173.1422\n",
      "当前总资产 1000000001173.1422\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-12 close 34.36366908 open 34.70122968\n",
      "当前可用资金 1000000001173.1422\n",
      "当前总资产 1000000001173.1422\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-13 close 33.55352364 open 34.36366908\n",
      "当前可用资金 1000000001173.1422\n",
      "当前总资产 1000000001173.1422\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-16 close 34.0936206 open 33.62103576\n",
      "当前可用资金 1000000001173.1422\n",
      "当前总资产 1000000001173.1422\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-17 close 35.1063024 open 34.22864484\n",
      "当前可用资金 1000000001173.1422\n",
      "当前总资产 1000000001173.1422\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-18 close 34.97127816 open 35.17381452\n",
      "当前可用资金 1000000001173.1422\n",
      "当前总资产 1000000001173.1422\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-19 close 34.768741799999994 open 34.90376604\n",
      "当前可用资金 1000000001173.1422\n",
      "当前总资产 1000000001173.1422\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-20 close 34.768741799999994 open 34.63371756\n",
      "当前可用资金 1000000001173.1422\n",
      "当前总资产 1000000001173.1422\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-23 close 35.03879028 open 34.70122968\n",
      "当前可用资金 1000000001173.1422\n",
      "当前总资产 1000000001173.1422\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-24 close 34.70122968 open 35.03879028\n",
      "当前可用资金 1000000001173.1422\n",
      "当前总资产 1000000001173.1422\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-25 close 34.70122968 open 34.90376604\n",
      "当前可用资金 1000000001173.1422\n",
      "当前总资产 1000000001173.1422\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-26 close 34.63371756 open 34.63371756\n",
      "当前可用资金 1000000001173.1422\n",
      "当前总资产 1000000001173.1422\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-27 close 35.1063024 open 34.63371756\n",
      "当前可用资金 1000000001173.1422\n",
      "当前总资产 1000000001173.1422\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-30 close 34.83625392 open 35.24132664\n",
      "当前可用资金 1000000001173.1422\n",
      "当前总资产 1000000001173.1422\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-12-01, BUY EXECUTED, ref:3989，Price: 34.8397, Size: 100.00, Cost: 3483.9738, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-12-01 close 35.1063024 open 34.83625392\n",
      "当前可用资金 999999997689.1685\n",
      "当前总资产 1000000001199.7987\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.839737545392\n",
      "2020-12-02, SELL EXECUTED, ref:3990, Price: 35.1028, Size: -100.00, Cost: 3483.9738, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-12-02 close 35.03879028 open 35.1063024\n",
      "当前可用资金 1000000001199.4476\n",
      "当前总资产 1000000001199.4476\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-12-03 close 34.70122968 open 35.1063024\n",
      "当前可用资金 1000000001199.4476\n",
      "当前总资产 1000000001199.4476\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-12-04 close 34.36366908 open 34.768741799999994\n",
      "当前可用资金 1000000001199.4476\n",
      "当前总资产 1000000001199.4476\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-12-07, BUY EXECUTED, ref:3991，Price: 34.2996, Size: 100.00, Cost: 3429.9587, Comm 0.0000, Stock: 600466.SH\n",
      "date 2020-12-07 close 33.89108424 open 34.29615696\n",
      "当前可用资金 999999997769.489\n",
      "当前总资产 1000000001158.5974\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2020-12-08 close 33.89108424 open 33.95859636\n",
      "当前可用资金 999999997769.489\n",
      "当前总资产 1000000001158.5974\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2020-12-09 close 33.55352364 open 33.95859636\n",
      "当前可用资金 999999997769.489\n",
      "当前总资产 1000000001124.8414\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2020-12-10 close 33.55352364 open 33.55352364\n",
      "当前可用资金 999999997769.489\n",
      "当前总资产 1000000001124.8414\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2020-12-11 close 33.14845092 open 33.48601152\n",
      "当前可用资金 999999997769.489\n",
      "当前总资产 1000000001084.3341\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2020-12-14 close 33.4184994 open 33.21596304\n",
      "当前可用资金 999999997769.489\n",
      "当前总资产 1000000001111.339\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2020-12-15 close 33.21596304 open 33.35098728\n",
      "当前可用资金 999999997769.489\n",
      "当前总资产 1000000001091.0853\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2020-12-16 close 32.87840244 open 33.080938800000006\n",
      "当前可用资金 999999997769.489\n",
      "当前总资产 1000000001057.3292\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2020-12-17 close 32.94591456 open 32.7433782\n",
      "当前可用资金 999999997769.489\n",
      "当前总资产 1000000001064.0804\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2020-12-18 close 32.54084184 open 32.87840244\n",
      "当前可用资金 999999997769.489\n",
      "当前总资产 1000000001023.5732\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2020-12-21 close 32.54084184 open 32.54084184\n",
      "当前可用资金 999999997769.489\n",
      "当前总资产 1000000001023.5732\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2020-12-22 close 32.13576912 open 32.47332972\n",
      "当前可用资金 999999997769.489\n",
      "当前总资产 1000000000983.0659\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2020-12-23 close 31.93323276 open 32.00074488\n",
      "当前可用资金 999999997769.489\n",
      "当前总资产 1000000000962.8123\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2020-12-24 close 31.19059944 open 32.068257\n",
      "当前可用资金 999999997769.489\n",
      "当前总资产 1000000000888.549\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2020-12-25 close 31.25811156 open 31.12308732\n",
      "当前可用资金 999999997769.489\n",
      "当前总资产 1000000000895.3002\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2020-12-28 close 31.12308732 open 31.25811156\n",
      "当前可用资金 999999997769.489\n",
      "当前总资产 1000000000881.7977\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2020-12-29 close 31.59567216 open 31.12308732\n",
      "当前可用资金 999999997769.489\n",
      "当前总资产 1000000000929.0563\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2020-12-30 close 31.52816004 open 31.46064792\n",
      "当前可用资金 999999997769.489\n",
      "当前总资产 1000000000922.305\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2020-12-31 close 31.25811156 open 31.25811156\n",
      "当前可用资金 999999997769.489\n",
      "当前总资产 1000000000895.3002\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2021-01-04 close 30.0428934 open 31.19059944\n",
      "当前可用资金 999999997769.489\n",
      "当前总资产 1000000000773.7783\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2021-01-05 close 30.11040552 open 29.90786916\n",
      "当前可用资金 999999997769.489\n",
      "当前总资产 1000000000780.5295\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2021-01-06 close 30.0428934 open 30.0428934\n",
      "当前可用资金 999999997769.489\n",
      "当前总资产 1000000000773.7783\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2021-01-07 close 29.84035704 open 30.0428934\n",
      "当前可用资金 999999997769.489\n",
      "当前总资产 1000000000753.5247\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2021-01-08 close 29.97538128 open 29.705332799999997\n",
      "当前可用资金 999999997769.489\n",
      "当前总资产 1000000000767.0271\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2021-01-11 close 29.63782068 open 29.97538128\n",
      "当前可用资金 999999997769.489\n",
      "当前总资产 1000000000733.2711\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2021-01-12 close 29.63782068 open 29.63782068\n",
      "当前可用资金 999999997769.489\n",
      "当前总资产 1000000000733.2711\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2021-01-13 close 29.90786916 open 29.57030856\n",
      "当前可用资金 999999997769.489\n",
      "当前总资产 1000000000760.2759\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2021-01-14 close 30.44796612 open 29.84035704\n",
      "当前可用资金 999999997769.489\n",
      "当前总资产 1000000000814.2856\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "date 2021-01-15 close 30.44796612 open 30.380453999999997\n",
      "当前可用资金 999999997769.489\n",
      "当前总资产 1000000000814.2856\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.299586575696\n",
      "2021-01-18, SELL EXECUTED, ref:3992, Price: 30.3774, Size: -100.00, Cost: 3429.9587, Comm 0.0000, Stock: 600466.SH\n",
      "date 2021-01-18 close 30.44796612 open 30.380453999999997\n",
      "当前可用资金 1000000000807.2306\n",
      "当前总资产 1000000000807.2306\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2021-01-19 close 31.12308732 open 30.380453999999997\n",
      "当前可用资金 1000000000807.2306\n",
      "当前总资产 1000000000807.2306\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2021-01-20 close 30.58299036 open 31.055575199999996\n",
      "当前可用资金 1000000000807.2306\n",
      "当前总资产 1000000000807.2306\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2021-01-21 close 30.31294188 open 30.51547824\n",
      "当前可用资金 1000000000807.2306\n",
      "当前总资产 1000000000807.2306\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2021-01-22 close 29.77284492 open 30.24542976\n",
      "当前可用资金 1000000000807.2306\n",
      "当前总资产 1000000000807.2306\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2021-01-25 close 28.96269948 open 29.57030856\n",
      "当前可用资金 1000000000807.2306\n",
      "当前总资产 1000000000807.2306\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2021-01-26, BUY EXECUTED, ref:3993，Price: 28.9656, Size: 100.00, Cost: 2896.5596, Comm 0.0000, Stock: 600466.SH\n",
      "date 2021-01-26 close 28.76016312 open 28.96269948\n",
      "当前可用资金 999999997910.671\n",
      "当前总资产 1000000000786.6874\n",
      "当前持仓量 100\n",
      "当前持仓成本 28.965595749948\n",
      "date 2021-01-27 close 28.89518736 open 28.76016312\n",
      "当前可用资金 999999997910.671\n",
      "当前总资产 1000000000800.1897\n",
      "当前持仓量 100\n",
      "当前持仓成本 28.965595749948\n",
      "date 2021-01-28 close 28.76016312 open 28.82767524\n",
      "当前可用资金 999999997910.671\n",
      "当前总资产 1000000000786.6874\n",
      "当前持仓量 100\n",
      "当前持仓成本 28.965595749948\n"
     ]
    }
   ],
   "source": [
    "class TestStrategy(bt.Strategy):\n",
    "  \n",
    "    params=(('period1',5),\n",
    "            ('period2',10),)   #全局设定均线周期\n",
    "    \n",
    "    def log(self, txt, dt=None):\n",
    "        ''' Logging function fot this strategy'''\n",
    "        dt = dt or self.datas[0].datetime.date(0)\n",
    "        print('%s, %s' % (dt.isoformat(), txt))\n",
    "    \n",
    "    def __init__(self):\n",
    "        #计算均线\n",
    "        self.ma1 = bt.indicators.SMA(self.data0, period=self.p.period1)\n",
    "        self.ma2 = bt.indicators.SMA(self.data0, period=self.p.period2)\n",
    "        #计算2条均线交叉信号：ma2 上穿 ma1 时，取值为 +1； ma2 下穿 ma1 时，取值为 -1\n",
    "        self.crossover = bt.indicators.CrossOver(self.ma2, self.ma1) \n",
    "        # 初始化订单\n",
    "        self.order = None\n",
    "        \n",
    "    def next(self):\n",
    "        \n",
    "        # 打印每日的资金和持仓情况\n",
    "        print('date', self.data0.datetime.date(0),\n",
    "              'close', self.data0.close[0],\n",
    "              'open', self.data0.open[0])\n",
    "        print('当前可用资金', self.broker.getcash())\n",
    "        print('当前总资产', self.broker.getvalue())\n",
    "        print('当前持仓量', self.broker.getposition(self.data).size)\n",
    "        print('当前持仓成本', self.broker.getposition(self.data).price)\n",
    "        \n",
    "        # 取消之前未执行的订单\n",
    "        if self.order:  \n",
    "            self.cancel(self.order)  \n",
    "        \n",
    "        # 检查是否有持仓\n",
    "        if not self.position:  \n",
    "            # 10日均线上穿5日均线，买入\n",
    "            if self.crossover > 0:             \n",
    "                self.order = self.buy(size=100) # 以下一日开盘价买入100股\n",
    "        # # 10日均线下穿5日均线，卖出\n",
    "        elif self.crossover < 0:            \n",
    "            self.order = self.close() # 平仓，以下一日开盘价卖出\n",
    "            \n",
    "    \n",
    "    def notify_order(self, order):\n",
    "        # 未被处理的订单\n",
    "        if order.status in [order.Submitted, order.Accepted]:\n",
    "            return\n",
    "        # 已被处理的订单\n",
    "        if order.status in [order.Completed, order.Canceled, order.Margin]:\n",
    "            if order.isbuy():\n",
    "                self.log(\n",
    "                    'BUY EXECUTED, ref:%.0f，Price: %.4f, Size: %.2f, Cost: %.4f, Comm %.4f, Stock: %s' %\n",
    "                    (order.ref,\n",
    "                     order.executed.price,\n",
    "                     order.executed.size,\n",
    "                     order.executed.value,\n",
    "                     order.executed.comm,\n",
    "                     order.data._name))\n",
    "            else:  # Sell\n",
    "                self.log('SELL EXECUTED, ref:%.0f, Price: %.4f, Size: %.2f, Cost: %.4f, Comm %.4f, Stock: %s' %\n",
    "                        (order.ref,\n",
    "                        order.executed.price,\n",
    "                         order.executed.size,\n",
    "                        order.executed.value,\n",
    "                        order.executed.comm,\n",
    "                        order.data._name))\n",
    "                \n",
    "# 实例化大脑\n",
    "cerebro1= bt.Cerebro()\n",
    "# 设置初始资金\n",
    "cerebro1.broker.set_cash(1000000000000)\n",
    "# 加载数据\n",
    "datafeed1 = bt.feeds.PandasData(dataname=data1, fromdate=datetime.datetime(2019,1,2), todate=datetime.datetime(2021,1,28))\n",
    "cerebro1.adddata(datafeed1, name='600466.SH')\n",
    "\n",
    "\n",
    "# 设置百分比滑点 \n",
    "cerebro1.broker.set_slippage_perc(perc=0.0001) \n",
    "# 设置固定滑点\n",
    "# cerebro1.broker.set_slippage_fixed(fixed=0.001) \n",
    "# 有关滑点的其他设置\n",
    "# cerebro1.broker.set_slippage_fixed(fixed=0.35, slip_open=False, slip_match=True, slip_out=False)\n",
    "# cerebro1.broker.set_slippage_fixed(fixed=0.35, slip_open=True, slip_match=True, slip_out=False)\n",
    "# cerebro1.broker.set_slippage_fixed(fixed=0.35, slip_open=True, slip_match=True, slip_out=True)\n",
    "# cerebro1.broker.set_slippage_fixed(fixed=0.35, slip_open=True, slip_match=False, slip_out=True)\n",
    "\n",
    "# 添加策略\n",
    "cerebro1.addstrategy(TestStrategy)            \n",
    "# 启动回测\n",
    "result = cerebro1.run()  "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "32.636336977367"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 2019-01-17: 开盘价成交，实际成交价 为 开盘价*（1+0.0001）\n",
    "32.63307367 * (1+0.0001)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 四、交易税费管理\n",
    "\n",
    "以 考虑佣金和印花税的股票百分比费用 为例"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 130,
   "metadata": {
    "collapsed": true,
    "jupyter": {
     "outputs_hidden": true
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "date 2019-01-16 close 32.63307367 open 33.00320305\n",
      "当前可用资金 1000000000000.0\n",
      "当前总资产 1000000000000.0\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-01-17, BUY EXECUTED, ref:4055，Price: 32.6331, Size: 100.00, Cost: 3263.3074, Comm 0.6527, Stock: 600466.SH\n",
      "date 2019-01-17 close 32.0778796 open 32.63307367\n",
      "当前可用资金 999999996736.0399\n",
      "当前总资产 999999999943.8279\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.63307367\n",
      "date 2019-01-18 close 32.75645013 open 31.95450314\n",
      "当前可用资金 999999996736.0399\n",
      "当前总资产 1000000000011.6849\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.63307367\n",
      "date 2019-01-21 close 32.44800898 open 33.06489128\n",
      "当前可用资金 999999996736.0399\n",
      "当前总资产 999999999980.8408\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.63307367\n",
      "date 2019-01-22 close 32.44800898 open 32.38632075\n",
      "当前可用资金 999999996736.0399\n",
      "当前总资产 999999999980.8408\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.63307367\n",
      "date 2019-01-23 close 32.50969721 open 32.44800898\n",
      "当前可用资金 999999996736.0399\n",
      "当前总资产 999999999987.0096\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.63307367\n",
      "date 2019-01-24 close 32.38632075 open 32.50969721\n",
      "当前可用资金 999999996736.0399\n",
      "当前总资产 999999999974.672\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.63307367\n",
      "date 2019-01-25 close 33.06489128 open 32.94151482\n",
      "当前可用资金 999999996736.0399\n",
      "当前总资产 1000000000042.529\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.63307367\n",
      "date 2019-01-28 close 33.86683827 open 33.311644199999996\n",
      "当前可用资金 999999996736.0399\n",
      "当前总资产 1000000000122.7238\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.63307367\n",
      "2019-01-29, SELL EXECUTED, ref:4056, Price: 33.9285, Size: -100.00, Cost: 3263.3074, Comm 4.0714, Stock: 600466.SH\n",
      "date 2019-01-29 close 34.79216172 open 33.928526500000004\n",
      "当前可用资金 1000000000124.8212\n",
      "当前总资产 1000000000124.8212\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-01-30 close 34.23696765 open 34.66878526\n",
      "当前可用资金 1000000000124.8212\n",
      "当前总资产 1000000000124.8212\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-01-31 close 34.23696765 open 34.60709703\n",
      "当前可用资金 1000000000124.8212\n",
      "当前总资产 1000000000124.8212\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-02-01 close 34.73047349 open 34.66878526\n",
      "当前可用资金 1000000000124.8212\n",
      "当前总资产 1000000000124.8212\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-02-11 close 35.71748517 open 34.73047349\n",
      "当前可用资金 1000000000124.8212\n",
      "当前总资产 1000000000124.8212\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-02-12 close 35.65579694 open 35.65579694\n",
      "当前可用资金 1000000000124.8212\n",
      "当前总资产 1000000000124.8212\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-02-13 close 36.396055700000005 open 35.65579694\n",
      "当前可用资金 1000000000124.8212\n",
      "当前总资产 1000000000124.8212\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-02-14 close 36.14930278 open 36.14930278\n",
      "当前可用资金 1000000000124.8212\n",
      "当前总资产 1000000000124.8212\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-02-15 close 34.91553818 open 35.96423809\n",
      "当前可用资金 1000000000124.8212\n",
      "当前总资产 1000000000124.8212\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-02-18 close 35.90254986 open 34.97722641\n",
      "当前可用资金 1000000000124.8212\n",
      "当前总资产 1000000000124.8212\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-02-19 close 35.10060287 open 35.96423809\n",
      "当前可用资金 1000000000124.8212\n",
      "当前总资产 1000000000124.8212\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-02-20 close 35.40904402 open 35.162291100000004\n",
      "当前可用资金 1000000000124.8212\n",
      "当前总资产 1000000000124.8212\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-02-21 close 34.85384995 open 35.47073225\n",
      "当前可用资金 1000000000124.8212\n",
      "当前总资产 1000000000124.8212\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-02-22, BUY EXECUTED, ref:4057，Price: 34.9155, Size: 100.00, Cost: 3491.5538, Comm 0.6983, Stock: 600466.SH\n",
      "date 2019-02-22 close 35.162291100000004 open 34.91553818\n",
      "当前可用资金 999999996632.569\n",
      "当前总资产 1000000000148.7981\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.91553818\n",
      "date 2019-02-25 close 37.012938 open 35.28566756\n",
      "当前可用资金 999999996632.569\n",
      "当前总资产 1000000000333.8628\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.91553818\n",
      "date 2019-02-26 close 37.75319676 open 37.07462623\n",
      "当前可用资金 999999996632.569\n",
      "当前总资产 1000000000407.8887\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.91553818\n",
      "2019-02-27, SELL EXECUTED, ref:4058, Price: 37.5064, Size: -100.00, Cost: 3491.5538, Comm 4.5008, Stock: 600466.SH\n",
      "date 2019-02-27 close 38.49345552 open 37.50644384\n",
      "当前可用资金 1000000000378.7126\n",
      "当前总资产 1000000000378.7126\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-02-28 close 38.30839083 open 38.8635849\n",
      "当前可用资金 1000000000378.7126\n",
      "当前总资产 1000000000378.7126\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-01 close 38.61683198 open 38.67852021\n",
      "当前可用资金 1000000000378.7126\n",
      "当前总资产 1000000000378.7126\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-04 close 39.17202605 open 38.98696136\n",
      "当前可用资金 1000000000378.7126\n",
      "当前总资产 1000000000378.7126\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-05 close 41.88630817 open 40.40579065\n",
      "当前可用资金 1000000000378.7126\n",
      "当前总资产 1000000000378.7126\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-06 close 42.25643755 open 42.31812578\n",
      "当前可用资金 1000000000378.7126\n",
      "当前总资产 1000000000378.7126\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-07 close 41.45449056 open 41.82461994\n",
      "当前可用资金 1000000000378.7126\n",
      "当前总资产 1000000000378.7126\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-08 close 38.55514375 open 40.65254357\n",
      "当前可用资金 1000000000378.7126\n",
      "当前总资产 1000000000378.7126\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-11 close 39.23371428 open 38.37007906\n",
      "当前可用资金 1000000000378.7126\n",
      "当前总资产 1000000000378.7126\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-12 close 40.52916711 open 39.60384366\n",
      "当前可用资金 1000000000378.7126\n",
      "当前总资产 1000000000378.7126\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-13 close 42.31812578 open 40.59085534\n",
      "当前可用资金 1000000000378.7126\n",
      "当前总资产 1000000000378.7126\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-14 close 41.20773764 open 41.82461994\n",
      "当前可用资金 1000000000378.7126\n",
      "当前总资产 1000000000378.7126\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-03-15, BUY EXECUTED, ref:4059，Price: 41.2077, Size: 100.00, Cost: 4120.7738, Comm 0.8242, Stock: 600466.SH\n",
      "date 2019-03-15 close 42.62656693 open 41.20773764\n",
      "当前可用资金 999999996257.1147\n",
      "当前总资产 1000000000519.7715\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.20773764\n",
      "2019-03-18, SELL EXECUTED, ref:4060, Price: 44.1071, Size: -100.00, Cost: 4120.7738, Comm 5.2929, Stock: 600466.SH\n",
      "date 2019-03-18 close 44.47721383 open 44.10708445\n",
      "当前可用资金 1000000000662.5304\n",
      "当前总资产 1000000000662.5304\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-19 close 44.60059029 open 44.97071967\n",
      "当前可用资金 1000000000662.5304\n",
      "当前总资产 1000000000662.5304\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-20 close 44.72396675 open 44.4155256\n",
      "当前可用资金 1000000000662.5304\n",
      "当前总资产 1000000000662.5304\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-21 close 46.14279604 open 45.21747259\n",
      "当前可用资金 1000000000662.5304\n",
      "当前总资产 1000000000662.5304\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-22 close 45.71097843 open 46.14279604\n",
      "当前可用资金 1000000000662.5304\n",
      "当前总资产 1000000000662.5304\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-25 close 45.6492902 open 45.032407899999995\n",
      "当前可用资金 1000000000662.5304\n",
      "当前总资产 1000000000662.5304\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-26 close 44.47721383 open 45.89604312\n",
      "当前可用资金 1000000000662.5304\n",
      "当前总资产 1000000000662.5304\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-27 close 45.58760197 open 44.84734321\n",
      "当前可用资金 1000000000662.5304\n",
      "当前总资产 1000000000662.5304\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-28 close 43.49020215 open 45.21747259\n",
      "当前可用资金 1000000000662.5304\n",
      "当前总资产 1000000000662.5304\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-03-29 close 45.52591374 open 43.55189038\n",
      "当前可用资金 1000000000662.5304\n",
      "当前总资产 1000000000662.5304\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-04-01, BUY EXECUTED, ref:4061，Price: 46.1428, Size: 100.00, Cost: 4614.2796, Comm 0.9229, Stock: 600466.SH\n",
      "date 2019-04-01 close 47.74669002 open 46.14279604\n",
      "当前可用资金 999999996047.3279\n",
      "当前总资产 1000000000821.9968\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.14279604\n",
      "date 2019-04-02 close 47.43824887 open 48.1168194\n",
      "当前可用资金 999999996047.3279\n",
      "当前总资产 1000000000791.1527\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.14279604\n",
      "2019-04-03, SELL EXECUTED, ref:4062, Price: 47.0681, Size: -100.00, Cost: 4614.2796, Comm 5.6482, Stock: 600466.SH\n",
      "date 2019-04-03 close 48.17850763 open 47.06811949\n",
      "当前可用资金 1000000000748.4916\n",
      "当前总资产 1000000000748.4916\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-04-04 close 48.1168194 open 48.17850763\n",
      "当前可用资金 1000000000748.4916\n",
      "当前总资产 1000000000748.4916\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-04-08 close 47.499937100000004 open 48.61032524\n",
      "当前可用资金 1000000000748.4916\n",
      "当前总资产 1000000000748.4916\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-04-09 close 52.18824258 open 47.93175471\n",
      "当前可用资金 1000000000748.4916\n",
      "当前总资产 1000000000748.4916\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-04-10 close 50.46097214 open 51.2012309\n",
      "当前可用资金 1000000000748.4916\n",
      "当前总资产 1000000000748.4916\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-04-11 close 48.733701700000005 open 50.584348600000006\n",
      "当前可用资金 1000000000748.4916\n",
      "当前总资产 1000000000748.4916\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-04-12 close 48.54863701 open 48.733701700000005\n",
      "当前可用资金 1000000000748.4916\n",
      "当前总资产 1000000000748.4916\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-04-15 close 47.99344294 open 49.47396046\n",
      "当前可用资金 1000000000748.4916\n",
      "当前总资产 1000000000748.4916\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-04-16 close 46.63630188 open 47.56162533\n",
      "当前可用资金 1000000000748.4916\n",
      "当前总资产 1000000000748.4916\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-04-17, BUY EXECUTED, ref:4063，Price: 46.6363, Size: 100.00, Cost: 4663.6302, Comm 0.9327, Stock: 600466.SH\n",
      "date 2019-04-17 close 46.14279604 open 46.63630188\n",
      "当前可用资金 999999996083.9286\n",
      "当前总资产 1000000000698.2083\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-04-18 close 44.84734321 open 46.08110781\n",
      "当前可用资金 999999996083.9286\n",
      "当前总资产 1000000000568.663\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-04-19 close 45.46422551 open 45.032407899999995\n",
      "当前可用资金 999999996083.9286\n",
      "当前总资产 1000000000630.3512\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-04-22 close 42.74994339 open 44.16877268\n",
      "当前可用资金 999999996083.9286\n",
      "当前总资产 1000000000358.923\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-04-23 close 42.93500808 open 43.05838454\n",
      "当前可用资金 999999996083.9286\n",
      "当前总资产 1000000000377.4294\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-04-24 close 42.93500808 open 43.181761\n",
      "当前可用资金 999999996083.9286\n",
      "当前总资产 1000000000377.4294\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-04-25 close 42.68825516 open 42.99669631\n",
      "当前可用资金 999999996083.9286\n",
      "当前总资产 1000000000352.7542\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-04-26 close 42.99669631 open 42.44150224\n",
      "当前可用资金 999999996083.9286\n",
      "当前总资产 1000000000383.5983\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-04-29 close 43.36682569 open 43.49020215\n",
      "当前可用资金 999999996083.9286\n",
      "当前总资产 1000000000420.6112\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-04-30 close 42.93500808 open 43.55189038\n",
      "当前可用资金 999999996083.9286\n",
      "当前总资产 1000000000377.4294\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-05-06 close 38.61683198 open 41.26942587\n",
      "当前可用资金 999999996083.9286\n",
      "当前总资产 999999999945.6118\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-05-07 close 40.15903773 open 39.41877897\n",
      "当前可用资金 999999996083.9286\n",
      "当前总资产 1000000000099.8324\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-05-08 close 40.1590375 open 39.64500182\n",
      "当前可用资金 999999996083.9286\n",
      "当前总资产 1000000000099.8324\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-05-09 close 40.22329196 open 40.99434548\n",
      "当前可用资金 999999996083.9286\n",
      "当前总资产 1000000000106.2578\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-05-10 close 41.1228544 open 39.96627412\n",
      "当前可用资金 999999996083.9286\n",
      "当前总资产 1000000000196.214\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-05-13 close 39.90201966 open 40.28754642\n",
      "当前可用资金 999999996083.9286\n",
      "当前总资产 1000000000074.1306\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-05-14 close 39.5164929 open 39.5164929\n",
      "当前可用资金 999999996083.9286\n",
      "当前总资产 1000000000035.5779\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-05-15 close 40.35180088 open 39.8377652\n",
      "当前可用资金 999999996083.9286\n",
      "当前总资产 1000000000119.1086\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-05-16 close 40.60881872 open 40.35180088\n",
      "当前可用资金 999999996083.9286\n",
      "当前总资产 1000000000144.8104\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "date 2019-05-17 close 39.96627412 open 40.93009102\n",
      "当前可用资金 999999996083.9286\n",
      "当前总资产 1000000000080.556\n",
      "当前持仓量 100\n",
      "当前持仓成本 46.63630188\n",
      "2019-05-20, SELL EXECUTED, ref:4064, Price: 39.7735, Size: -100.00, Cost: 4663.6302, Comm 4.7728, Stock: 600466.SH\n",
      "date 2019-05-20 close 39.38798398 open 39.77351074\n",
      "当前可用资金 1000000000056.5068\n",
      "当前总资产 1000000000056.5068\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-05-21, BUY EXECUTED, ref:4065，Price: 39.2595, Size: 100.00, Cost: 3925.9475, Comm 0.7852, Stock: 600466.SH\n",
      "date 2019-05-21 close 39.96627412 open 39.25947506\n",
      "当前可用资金 999999996129.7742\n",
      "当前总资产 1000000000126.4016\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "date 2019-05-22 close 39.38798398 open 39.96627412\n",
      "当前可用资金 999999996129.7742\n",
      "当前总资产 1000000000068.5725\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "date 2019-05-23 close 38.61693046 open 39.32372952\n",
      "当前可用资金 999999996129.7742\n",
      "当前总资产 999999999991.4672\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "date 2019-05-24 close 37.52460464 open 38.61693046\n",
      "当前可用资金 999999996129.7742\n",
      "当前总资产 999999999882.2346\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "date 2019-05-27 close 38.42416708 open 37.71736802\n",
      "当前可用资金 999999996129.7742\n",
      "当前总资产 999999999972.1909\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "date 2019-05-28 close 38.552676 open 38.552676\n",
      "当前可用资金 999999996129.7742\n",
      "当前总资产 999999999985.0417\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "date 2019-05-29 close 37.910131400000004 open 38.35991262\n",
      "当前可用资金 999999996129.7742\n",
      "当前总资产 999999999920.7874\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "date 2019-05-30 close 38.03864032 open 37.65311356\n",
      "当前可用资金 999999996129.7742\n",
      "当前总资产 999999999933.6382\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "date 2019-05-31 close 38.03864032 open 38.10289478\n",
      "当前可用资金 999999996129.7742\n",
      "当前总资产 999999999933.6382\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "date 2019-06-03 close 37.71736802 open 37.78162248\n",
      "当前可用资金 999999996129.7742\n",
      "当前总资产 999999999901.511\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "date 2019-06-04 close 36.68929666 open 37.71736802\n",
      "当前可用资金 999999996129.7742\n",
      "当前总资产 999999999798.7039\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "date 2019-06-05 close 37.52460464 open 37.07482342\n",
      "当前可用资金 999999996129.7742\n",
      "当前总资产 999999999882.2346\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "date 2019-06-06 close 36.6250422 open 37.65311356\n",
      "当前可用资金 999999996129.7742\n",
      "当前总资产 999999999792.2784\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "date 2019-06-10 close 37.97438586 open 36.9463145\n",
      "当前可用资金 999999996129.7742\n",
      "当前总资产 999999999927.2128\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "date 2019-06-11 close 39.96627412 open 38.48842154\n",
      "当前可用资金 999999996129.7742\n",
      "当前总资产 1000000000126.4016\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "date 2019-06-12 close 39.96627412 open 39.90201966\n",
      "当前可用资金 999999996129.7742\n",
      "当前总资产 1000000000126.4016\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "2019-06-13, SELL EXECUTED, ref:4066, Price: 40.0948, Size: -100.00, Cost: 3925.9475, Comm 4.8114, Stock: 600466.SH\n",
      "date 2019-06-13 close 39.77351074 open 40.09478304\n",
      "当前可用资金 1000000000134.441\n",
      "当前总资产 1000000000134.441\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-06-14 close 40.93009102 open 40.1590375\n",
      "当前可用资金 1000000000134.441\n",
      "当前总资产 1000000000134.441\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-06-17 close 40.54456426 open 40.93009102\n",
      "当前可用资金 1000000000134.441\n",
      "当前总资产 1000000000134.441\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-06-18 close 40.22329196 open 40.41605534\n",
      "当前可用资金 1000000000134.441\n",
      "当前总资产 1000000000134.441\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-06-19 close 40.22329196 open 41.05859994\n",
      "当前可用资金 1000000000134.441\n",
      "当前总资产 1000000000134.441\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-06-20 close 41.1228544 open 40.35180088\n",
      "当前可用资金 1000000000134.441\n",
      "当前总资产 1000000000134.441\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-06-21 close 41.18710886 open 41.25136332\n",
      "当前可用资金 1000000000134.441\n",
      "当前总资产 1000000000134.441\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-06-24 close 41.444126700000005 open 41.25136332\n",
      "当前可用资金 1000000000134.441\n",
      "当前总资产 1000000000134.441\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-06-25 close 40.60881872 open 41.50838116\n",
      "当前可用资金 1000000000134.441\n",
      "当前总资产 1000000000134.441\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-06-26 close 40.60881872 open 40.4803098\n",
      "当前可用资金 1000000000134.441\n",
      "当前总资产 1000000000134.441\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-06-27 close 40.93009102 open 40.99434548\n",
      "当前可用资金 1000000000134.441\n",
      "当前总资产 1000000000134.441\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-06-28 close 39.96627412 open 40.93009102\n",
      "当前可用资金 1000000000134.441\n",
      "当前总资产 1000000000134.441\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-07-01 close 40.73732764 open 40.4803098\n",
      "当前可用资金 1000000000134.441\n",
      "当前总资产 1000000000134.441\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-07-02, BUY EXECUTED, ref:4067，Price: 40.4803, Size: 100.00, Cost: 4048.0310, Comm 0.8096, Stock: 600466.SH\n",
      "date 2019-07-02 close 40.28754642 open 40.4803098\n",
      "当前可用资金 999999996085.6005\n",
      "当前总资产 1000000000114.3551\n",
      "当前持仓量 100\n",
      "当前持仓成本 40.4803098\n",
      "date 2019-07-03 close 41.37987224 open 39.96627412\n",
      "当前可用资金 999999996085.6005\n",
      "当前总资产 1000000000223.5876\n",
      "当前持仓量 100\n",
      "当前持仓成本 40.4803098\n",
      "date 2019-07-04 close 42.0866713 open 40.99434548\n",
      "当前可用资金 999999996085.6005\n",
      "当前总资产 1000000000294.2676\n",
      "当前持仓量 100\n",
      "当前持仓成本 40.4803098\n",
      "date 2019-07-05 close 41.1228544 open 41.765399\n",
      "当前可用资金 999999996085.6005\n",
      "当前总资产 1000000000197.8859\n",
      "当前持仓量 100\n",
      "当前持仓成本 40.4803098\n",
      "2019-07-08, SELL EXECUTED, ref:4068, Price: 40.9301, Size: -100.00, Cost: 4048.0310, Comm 4.9116, Stock: 600466.SH\n",
      "date 2019-07-08 close 39.58074736 open 40.93009102\n",
      "当前可用资金 1000000000173.698\n",
      "当前总资产 1000000000173.698\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-07-09 close 39.5164929 open 39.38798398\n",
      "当前可用资金 1000000000173.698\n",
      "当前总资产 1000000000173.698\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-07-10 close 37.71736802 open 39.8377652\n",
      "当前可用资金 1000000000173.698\n",
      "当前总资产 1000000000173.698\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-07-11, BUY EXECUTED, ref:4069，Price: 38.4884, Size: 100.00, Cost: 3848.8422, Comm 0.7698, Stock: 600466.SH\n",
      "date 2019-07-11 close 39.5164929 open 38.48842154\n",
      "当前可用资金 999999996324.086\n",
      "当前总资产 1000000000275.7354\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.48842154\n",
      "date 2019-07-12 close 39.38798398 open 39.64500182\n",
      "当前可用资金 999999996324.086\n",
      "当前总资产 1000000000262.8844\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.48842154\n",
      "date 2019-07-15 close 40.22329196 open 39.58074736\n",
      "当前可用资金 999999996324.086\n",
      "当前总资产 1000000000346.4153\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.48842154\n",
      "date 2019-07-16 close 41.25136332 open 40.4803098\n",
      "当前可用资金 999999996324.086\n",
      "当前总资产 1000000000449.2224\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.48842154\n",
      "date 2019-07-17 close 41.18710886 open 41.444126700000005\n",
      "当前可用资金 999999996324.086\n",
      "当前总资产 1000000000442.797\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.48842154\n",
      "2019-07-18, SELL EXECUTED, ref:4070, Price: 41.1871, Size: -100.00, Cost: 3848.8422, Comm 4.9425, Stock: 600466.SH\n",
      "date 2019-07-18 close 40.22329196 open 41.18710886\n",
      "当前可用资金 1000000000437.8545\n",
      "当前总资产 1000000000437.8545\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-07-19 close 41.765399 open 40.60881872\n",
      "当前可用资金 1000000000437.8545\n",
      "当前总资产 1000000000437.8545\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-07-22 close 40.67307318 open 41.89390792\n",
      "当前可用资金 1000000000437.8545\n",
      "当前总资产 1000000000437.8545\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-07-23 close 40.67307318 open 41.70114454\n",
      "当前可用资金 1000000000437.8545\n",
      "当前总资产 1000000000437.8545\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-07-24 close 40.54456426 open 40.93009102\n",
      "当前可用资金 1000000000437.8545\n",
      "当前总资产 1000000000437.8545\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-07-25 close 40.09478304 open 40.54456426\n",
      "当前可用资金 1000000000437.8545\n",
      "当前总资产 1000000000437.8545\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-07-26 close 40.99434548 open 40.03052858\n",
      "当前可用资金 1000000000437.8545\n",
      "当前总资产 1000000000437.8545\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-07-29, BUY EXECUTED, ref:4071，Price: 41.2514, Size: 100.00, Cost: 4125.1363, Comm 0.8250, Stock: 600466.SH\n",
      "date 2019-07-29 close 40.22329196 open 41.25136332\n",
      "当前可用资金 999999996311.8931\n",
      "当前总资产 1000000000334.2223\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.25136332\n",
      "date 2019-07-30 close 40.28754642 open 40.1590375\n",
      "当前可用资金 999999996311.8931\n",
      "当前总资产 1000000000340.6477\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.25136332\n",
      "date 2019-07-31 close 39.25947506 open 40.09478304\n",
      "当前可用资金 999999996311.8931\n",
      "当前总资产 1000000000237.8406\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.25136332\n",
      "date 2019-08-01 close 38.48842154 open 39.1952206\n",
      "当前可用资金 999999996311.8931\n",
      "当前总资产 1000000000160.7352\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.25136332\n",
      "date 2019-08-02 close 37.33184126 open 37.5888591\n",
      "当前可用资金 999999996311.8931\n",
      "当前总资产 1000000000045.0771\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.25136332\n",
      "date 2019-08-05 close 36.9463145 open 37.13907788\n",
      "当前可用资金 999999996311.8931\n",
      "当前总资产 1000000000006.5245\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.25136332\n",
      "date 2019-08-06 close 37.2675868 open 36.11100652\n",
      "当前可用资金 999999996311.8931\n",
      "当前总资产 1000000000038.6517\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.25136332\n",
      "date 2019-08-07 close 37.5888591 open 37.39609572\n",
      "当前可用资金 999999996311.8931\n",
      "当前总资产 1000000000070.7789\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.25136332\n",
      "date 2019-08-08 close 37.13907788 open 37.5888591\n",
      "当前可用资金 999999996311.8931\n",
      "当前总资产 1000000000025.8009\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.25136332\n",
      "date 2019-08-09 close 36.6250422 open 37.2675868\n",
      "当前可用资金 999999996311.8931\n",
      "当前总资产 999999999974.3973\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.25136332\n",
      "date 2019-08-12 close 36.9463145 open 36.49653328\n",
      "当前可用资金 999999996311.8931\n",
      "当前总资产 1000000000006.5245\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.25136332\n",
      "date 2019-08-13 close 36.43227882 open 36.75355112\n",
      "当前可用资金 999999996311.8931\n",
      "当前总资产 999999999955.121\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.25136332\n",
      "date 2019-08-14 close 36.36802436 open 36.88206004\n",
      "当前可用资金 999999996311.8931\n",
      "当前总资产 999999999948.6956\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.25136332\n",
      "date 2019-08-15 close 36.56078774 open 35.6612253\n",
      "当前可用资金 999999996311.8931\n",
      "当前总资产 999999999967.9718\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.25136332\n",
      "date 2019-08-16 close 36.3037699 open 36.6250422\n",
      "当前可用资金 999999996311.8931\n",
      "当前总资产 999999999942.27\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.25136332\n",
      "date 2019-08-19 close 37.71736802 open 36.56078774\n",
      "当前可用资金 999999996311.8931\n",
      "当前总资产 1000000000083.6299\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.25136332\n",
      "date 2019-08-20 close 38.10289478 open 37.910131400000004\n",
      "当前可用资金 999999996311.8931\n",
      "当前总资产 1000000000122.1825\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.25136332\n",
      "2019-08-21, SELL EXECUTED, ref:4072, Price: 37.8459, Size: -100.00, Cost: 4125.1363, Comm 4.5415, Stock: 600466.SH\n",
      "date 2019-08-21 close 38.68118492 open 37.84587694\n",
      "当前可用资金 1000000000091.9392\n",
      "当前总资产 1000000000091.9392\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-08-22 close 38.873948299999995 open 38.74543938\n",
      "当前可用资金 1000000000091.9392\n",
      "当前总资产 1000000000091.9392\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-08-23 close 39.58074736 open 39.13096614\n",
      "当前可用资金 1000000000091.9392\n",
      "当前总资产 1000000000091.9392\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-08-26 close 39.1952206 open 39.25947506\n",
      "当前可用资金 1000000000091.9392\n",
      "当前总资产 1000000000091.9392\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-08-27 close 38.93820276 open 39.32372952\n",
      "当前可用资金 1000000000091.9392\n",
      "当前总资产 1000000000091.9392\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-08-28 close 38.93820276 open 38.93820276\n",
      "当前可用资金 1000000000091.9392\n",
      "当前总资产 1000000000091.9392\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-08-29 close 37.78162248 open 39.13096614\n",
      "当前可用资金 1000000000091.9392\n",
      "当前总资产 1000000000091.9392\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-08-30 close 36.68929666 open 38.29565816\n",
      "当前可用资金 1000000000091.9392\n",
      "当前总资产 1000000000091.9392\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-09-02, BUY EXECUTED, ref:4073，Price: 36.6893, Size: 100.00, Cost: 3668.9297, Comm 0.7338, Stock: 600466.SH\n",
      "date 2019-09-02 close 37.2675868 open 36.68929666\n",
      "当前可用资金 999999996422.2758\n",
      "当前总资产 1000000000149.0344\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.68929666\n",
      "date 2019-09-03 close 37.13907788 open 37.33184126\n",
      "当前可用资金 999999996422.2758\n",
      "当前总资产 1000000000136.1836\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.68929666\n",
      "date 2019-09-04 close 38.42416708 open 36.88206004\n",
      "当前可用资金 999999996422.2758\n",
      "当前总资产 1000000000264.6925\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.68929666\n",
      "date 2019-09-05 close 38.74543938 open 38.74543938\n",
      "当前可用资金 999999996422.2758\n",
      "当前总资产 1000000000296.8197\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.68929666\n",
      "date 2019-09-06 close 39.06671168 open 39.1952206\n",
      "当前可用资金 999999996422.2758\n",
      "当前总资产 1000000000328.9469\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.68929666\n",
      "date 2019-09-09 close 39.58074736 open 39.58074736\n",
      "当前可用资金 999999996422.2758\n",
      "当前总资产 1000000000380.3505\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.68929666\n",
      "2019-09-10, SELL EXECUTED, ref:4074, Price: 39.5807, Size: -100.00, Cost: 3668.9297, Comm 4.7497, Stock: 600466.SH\n",
      "date 2019-09-10 close 39.13096614 open 39.58074736\n",
      "当前可用资金 1000000000375.6008\n",
      "当前总资产 1000000000375.6008\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-09-11 close 38.873948299999995 open 39.06671168\n",
      "当前可用资金 1000000000375.6008\n",
      "当前总资产 1000000000375.6008\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-09-12 close 40.73732764 open 39.13096614\n",
      "当前可用资金 1000000000375.6008\n",
      "当前总资产 1000000000375.6008\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-09-16 close 40.60881872 open 40.8015821\n",
      "当前可用资金 1000000000375.6008\n",
      "当前总资产 1000000000375.6008\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-09-17 close 40.03052858 open 40.54456426\n",
      "当前可用资金 1000000000375.6008\n",
      "当前总资产 1000000000375.6008\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-09-18 close 41.1228544 open 40.28754642\n",
      "当前可用资金 1000000000375.6008\n",
      "当前总资产 1000000000375.6008\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-09-19 close 40.4803098 open 41.1228544\n",
      "当前可用资金 1000000000375.6008\n",
      "当前总资产 1000000000375.6008\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-09-20 close 40.41605534 open 40.4803098\n",
      "当前可用资金 1000000000375.6008\n",
      "当前总资产 1000000000375.6008\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-09-23 close 39.64500182 open 40.4803098\n",
      "当前可用资金 1000000000375.6008\n",
      "当前总资产 1000000000375.6008\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-09-24 close 39.1952206 open 39.64500182\n",
      "当前可用资金 1000000000375.6008\n",
      "当前总资产 1000000000375.6008\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-09-25 close 39.70925628 open 39.45223844\n",
      "当前可用资金 1000000000375.6008\n",
      "当前总资产 1000000000375.6008\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-09-26, BUY EXECUTED, ref:4075，Price: 39.5807, Size: 100.00, Cost: 3958.0747, Comm 0.7916, Stock: 600466.SH\n",
      "date 2019-09-26 close 39.1952206 open 39.58074736\n",
      "当前可用资金 999999996416.7345\n",
      "当前总资产 1000000000336.2566\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.58074736\n",
      "date 2019-09-27 close 38.68118492 open 39.38798398\n",
      "当前可用资金 999999996416.7345\n",
      "当前总资产 1000000000284.853\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.58074736\n",
      "date 2019-09-30 close 38.61693046 open 38.552676\n",
      "当前可用资金 999999996416.7345\n",
      "当前总资产 1000000000278.4275\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.58074736\n",
      "date 2019-10-08 close 40.35180088 open 39.13096614\n",
      "当前可用资金 999999996416.7345\n",
      "当前总资产 1000000000451.9146\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.58074736\n",
      "date 2019-10-09 close 41.50838116 open 40.22329196\n",
      "当前可用资金 999999996416.7345\n",
      "当前总资产 1000000000567.5726\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.58074736\n",
      "date 2019-10-10 close 42.407943599999996 open 41.57263562\n",
      "当前可用资金 999999996416.7345\n",
      "当前总资产 1000000000657.5288\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.58074736\n",
      "2019-10-11, SELL EXECUTED, ref:4076, Price: 43.0505, Size: -100.00, Cost: 3958.0747, Comm 5.1661, Stock: 600466.SH\n",
      "date 2019-10-11 close 42.7292159 open 43.050488200000004\n",
      "当前可用资金 1000000000716.6173\n",
      "当前总资产 1000000000716.6173\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-10-14 close 44.3355774 open 43.11474266\n",
      "当前可用资金 1000000000716.6173\n",
      "当前总资产 1000000000716.6173\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-10-15 close 45.42790322 open 44.46408632\n",
      "当前可用资金 1000000000716.6173\n",
      "当前总资产 1000000000716.6173\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-10-16 close 45.9419389 open 45.74917552\n",
      "当前可用资金 1000000000716.6173\n",
      "当前总资产 1000000000716.6173\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-10-17 close 45.10663092 open 46.2632112\n",
      "当前可用资金 1000000000716.6173\n",
      "当前总资产 1000000000716.6173\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-10-18 close 42.21518022 open 45.9419389\n",
      "当前可用资金 1000000000716.6173\n",
      "当前总资产 1000000000716.6173\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-10-21 close 42.66496144 open 42.407943599999996\n",
      "当前可用资金 1000000000716.6173\n",
      "当前总资产 1000000000716.6173\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-10-22 close 42.15092576 open 42.7292159\n",
      "当前可用资金 1000000000716.6173\n",
      "当前总资产 1000000000716.6173\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-10-23 close 41.1228544 open 42.15092576\n",
      "当前可用资金 1000000000716.6173\n",
      "当前总资产 1000000000716.6173\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-10-24, BUY EXECUTED, ref:4077，Price: 41.3799, Size: 100.00, Cost: 4137.9872, Comm 0.8276, Stock: 600466.SH\n",
      "date 2019-10-24 close 41.70114454 open 41.37987224\n",
      "当前可用资金 999999996577.8025\n",
      "当前总资产 1000000000747.917\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.37987224\n",
      "date 2019-10-25 close 42.66496144 open 42.27943468\n",
      "当前可用资金 999999996577.8025\n",
      "当前总资产 1000000000844.2986\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.37987224\n",
      "date 2019-10-28 close 42.0866713 open 42.47219806\n",
      "当前可用资金 999999996577.8025\n",
      "当前总资产 1000000000786.4696\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.37987224\n",
      "date 2019-10-29 close 41.444126700000005 open 41.765399\n",
      "当前可用资金 999999996577.8025\n",
      "当前总资产 1000000000722.2152\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.37987224\n",
      "date 2019-10-30 close 40.8015821 open 41.31561778\n",
      "当前可用资金 999999996577.8025\n",
      "当前总资产 1000000000657.9607\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.37987224\n",
      "date 2019-10-31 close 41.1228544 open 40.86583656\n",
      "当前可用资金 999999996577.8025\n",
      "当前总资产 1000000000690.0879\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.37987224\n",
      "date 2019-11-01 close 41.765399 open 40.8015821\n",
      "当前可用资金 999999996577.8025\n",
      "当前总资产 1000000000754.3424\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.37987224\n",
      "date 2019-11-04 close 41.95816238 open 41.95816238\n",
      "当前可用资金 999999996577.8025\n",
      "当前总资产 1000000000773.6188\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.37987224\n",
      "date 2019-11-05 close 43.30750604 open 42.21518022\n",
      "当前可用资金 999999996577.8025\n",
      "当前总资产 1000000000908.5531\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.37987224\n",
      "date 2019-11-06 close 42.02241684 open 43.62877834\n",
      "当前可用资金 999999996577.8025\n",
      "当前总资产 1000000000780.0442\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.37987224\n",
      "2019-11-07, SELL EXECUTED, ref:4078, Price: 42.2152, Size: -100.00, Cost: 4137.9872, Comm 5.0658, Stock: 600466.SH\n",
      "date 2019-11-07 close 42.407943599999996 open 42.21518022\n",
      "当前可用资金 1000000000794.2548\n",
      "当前总资产 1000000000794.2548\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-11-08 close 41.82965346 open 42.66496144\n",
      "当前可用资金 1000000000794.2548\n",
      "当前总资产 1000000000794.2548\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-11-11 close 40.93009102 open 41.70114454\n",
      "当前可用资金 1000000000794.2548\n",
      "当前总资产 1000000000794.2548\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-11-12 close 40.73732764 open 41.05859994\n",
      "当前可用资金 1000000000794.2548\n",
      "当前总资产 1000000000794.2548\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-11-13, BUY EXECUTED, ref:4079，Price: 40.9943, Size: 100.00, Cost: 4099.4345, Comm 0.8199, Stock: 600466.SH\n",
      "date 2019-11-13 close 40.28754642 open 40.99434548\n",
      "当前可用资金 999999996694.0002\n",
      "当前总资产 1000000000722.7549\n",
      "当前持仓量 100\n",
      "当前持仓成本 40.99434548\n",
      "date 2019-11-14 close 40.73732764 open 40.41605534\n",
      "当前可用资金 999999996694.0002\n",
      "当前总资产 1000000000767.733\n",
      "当前持仓量 100\n",
      "当前持仓成本 40.99434548\n",
      "date 2019-11-15 close 40.41605534 open 40.8015821\n",
      "当前可用资金 999999996694.0002\n",
      "当前总资产 1000000000735.6058\n",
      "当前持仓量 100\n",
      "当前持仓成本 40.99434548\n",
      "date 2019-11-18 close 41.63689008 open 40.1590375\n",
      "当前可用资金 999999996694.0002\n",
      "当前总资产 1000000000857.6892\n",
      "当前持仓量 100\n",
      "当前持仓成本 40.99434548\n",
      "date 2019-11-19 close 42.66496144 open 41.57263562\n",
      "当前可用资金 999999996694.0002\n",
      "当前总资产 1000000000960.4963\n",
      "当前持仓量 100\n",
      "当前持仓成本 40.99434548\n",
      "date 2019-11-20 close 42.79347036 open 42.60070698\n",
      "当前可用资金 999999996694.0002\n",
      "当前总资产 1000000000973.3473\n",
      "当前持仓量 100\n",
      "当前持仓成本 40.99434548\n",
      "2019-11-21, SELL EXECUTED, ref:4080, Price: 42.7935, Size: -100.00, Cost: 4099.4345, Comm 5.1352, Stock: 600466.SH\n",
      "date 2019-11-21 close 43.17899712 open 42.79347036\n",
      "当前可用资金 1000000000968.212\n",
      "当前总资产 1000000000968.212\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-11-22 close 42.53645252 open 43.17899712\n",
      "当前可用资金 1000000000968.212\n",
      "当前总资产 1000000000968.212\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-11-25 close 43.88579618 open 42.85772482\n",
      "当前可用资金 1000000000968.212\n",
      "当前总资产 1000000000968.212\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-11-26 close 41.89390792 open 43.56452388\n",
      "当前可用资金 1000000000968.212\n",
      "当前总资产 1000000000968.212\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-11-27 close 43.6930328 open 42.47219806\n",
      "当前可用资金 1000000000968.212\n",
      "当前总资产 1000000000968.212\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-11-28 close 42.92197928 open 43.6930328\n",
      "当前可用资金 1000000000968.212\n",
      "当前总资产 1000000000968.212\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-11-29 close 42.53645252 open 42.92197928\n",
      "当前可用资金 1000000000968.212\n",
      "当前总资产 1000000000968.212\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-02 close 43.82154172 open 42.66496144\n",
      "当前可用资金 1000000000968.212\n",
      "当前总资产 1000000000968.212\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-12-03, BUY EXECUTED, ref:4081，Price: 43.6930, Size: 100.00, Cost: 4369.3033, Comm 0.8739, Stock: 600466.SH\n",
      "date 2019-12-03 close 44.52834078 open 43.6930328\n",
      "当前可用资金 999999996598.0349\n",
      "当前总资产 1000000001050.869\n",
      "当前持仓量 100\n",
      "当前持仓成本 43.6930328\n",
      "2019-12-04, SELL EXECUTED, ref:4082, Price: 44.0143, Size: -100.00, Cost: 4369.3033, Comm 5.2817, Stock: 600466.SH\n",
      "date 2019-12-04 close 43.62877834 open 44.0143051\n",
      "当前可用资金 1000000000994.1837\n",
      "当前总资产 1000000000994.1837\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-05 close 43.11474266 open 43.56452388\n",
      "当前可用资金 1000000000994.1837\n",
      "当前总资产 1000000000994.1837\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-06 close 43.050488200000004 open 42.98623374\n",
      "当前可用资金 1000000000994.1837\n",
      "当前总资产 1000000000994.1837\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-09 close 44.39983186 open 43.11474266\n",
      "当前可用资金 1000000000994.1837\n",
      "当前总资产 1000000000994.1837\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-10 close 44.20706848 open 44.27132294\n",
      "当前可用资金 1000000000994.1837\n",
      "当前总资产 1000000000994.1837\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-11 close 44.78535862 open 44.27132294\n",
      "当前可用资金 1000000000994.1837\n",
      "当前总资产 1000000000994.1837\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-12 close 44.27132294 open 44.59259524\n",
      "当前可用资金 1000000000994.1837\n",
      "当前总资产 1000000000994.1837\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-13 close 44.78535862 open 44.84961308\n",
      "当前可用资金 1000000000994.1837\n",
      "当前总资产 1000000000994.1837\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-16 close 44.91386754 open 45.10663092\n",
      "当前可用资金 1000000000994.1837\n",
      "当前总资产 1000000000994.1837\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-17 close 45.55641214 open 44.84961308\n",
      "当前可用资金 1000000000994.1837\n",
      "当前总资产 1000000000994.1837\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-18 close 46.00619336 open 45.49215768\n",
      "当前可用资金 1000000000994.1837\n",
      "当前总资产 1000000000994.1837\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-19 close 45.49215768 open 45.87768444\n",
      "当前可用资金 1000000000994.1837\n",
      "当前总资产 1000000000994.1837\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-20 close 46.07044782 open 45.6206666\n",
      "当前可用资金 1000000000994.1837\n",
      "当前总资产 1000000000994.1837\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-23 close 45.36364876 open 46.32746566\n",
      "当前可用资金 1000000000994.1837\n",
      "当前总资产 1000000000994.1837\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-24 close 44.84961308 open 45.42790322\n",
      "当前可用资金 1000000000994.1837\n",
      "当前总资产 1000000000994.1837\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-25 close 44.72110416 open 44.84961308\n",
      "当前可用资金 1000000000994.1837\n",
      "当前总资产 1000000000994.1837\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2019-12-26 close 45.55641214 open 45.17088538\n",
      "当前可用资金 1000000000994.1837\n",
      "当前总资产 1000000000994.1837\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2019-12-27, BUY EXECUTED, ref:4083，Price: 45.4922, Size: 100.00, Cost: 4549.2158, Comm 0.9098, Stock: 600466.SH\n",
      "date 2019-12-27 close 45.42790322 open 45.49215768\n",
      "当前可用资金 999999996444.0581\n",
      "当前总资产 1000000000986.8484\n",
      "当前持仓量 100\n",
      "当前持仓成本 45.49215768\n",
      "date 2019-12-30 close 45.9419389 open 45.6206666\n",
      "当前可用资金 999999996444.0581\n",
      "当前总资产 1000000001038.252\n",
      "当前持仓量 100\n",
      "当前持仓成本 45.49215768\n",
      "date 2019-12-31 close 47.35553702 open 46.00619336\n",
      "当前可用资金 999999996444.0581\n",
      "当前总资产 1000000001179.6118\n",
      "当前持仓量 100\n",
      "当前持仓成本 45.49215768\n",
      "2020-01-02, SELL EXECUTED, ref:4084, Price: 48.0623, Size: -100.00, Cost: 4549.2158, Comm 5.7675, Stock: 600466.SH\n",
      "date 2020-01-02 close 49.34742528 open 48.06233608\n",
      "当前可用资金 1000000001244.5243\n",
      "当前总资产 1000000001244.5243\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-01-03 close 48.25509946 open 49.09040744\n",
      "当前可用资金 1000000001244.5243\n",
      "当前总资产 1000000001244.5243\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-01-06 close 47.48404594 open 48.190845\n",
      "当前可用资金 1000000001244.5243\n",
      "当前总资产 1000000001244.5243\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-01-07 close 47.80531824 open 47.48404594\n",
      "当前可用资金 1000000001244.5243\n",
      "当前总资产 1000000001244.5243\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-01-08 close 47.2270281 open 47.48404594\n",
      "当前可用资金 1000000001244.5243\n",
      "当前总资产 1000000001244.5243\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-01-09 close 48.89764406 open 47.99808162\n",
      "当前可用资金 1000000001244.5243\n",
      "当前总资产 1000000001244.5243\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-01-10 close 48.96189852 open 49.21891636\n",
      "当前可用资金 1000000001244.5243\n",
      "当前总资产 1000000001244.5243\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-01-13 close 49.1546619 open 49.02615298\n",
      "当前可用资金 1000000001244.5243\n",
      "当前总资产 1000000001244.5243\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-01-14 close 48.44786284 open 49.1546619\n",
      "当前可用资金 1000000001244.5243\n",
      "当前总资产 1000000001244.5243\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-01-15 close 47.67680932 open 48.06233608\n",
      "当前可用资金 1000000001244.5243\n",
      "当前总资产 1000000001244.5243\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-01-16 close 47.74106378 open 47.99808162\n",
      "当前可用资金 1000000001244.5243\n",
      "当前总资产 1000000001244.5243\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-01-17 close 47.2270281 open 47.80531824\n",
      "当前可用资金 1000000001244.5243\n",
      "当前总资产 1000000001244.5243\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-01-20, BUY EXECUTED, ref:4085，Price: 47.0985, Size: 100.00, Cost: 4709.8519, Comm 0.9420, Stock: 600466.SH\n",
      "date 2020-01-20 close 46.584483500000005 open 47.09851918\n",
      "当前可用资金 999999996533.7303\n",
      "当前总资产 1000000001192.1787\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.09851918\n",
      "date 2020-01-21 close 44.978122 open 46.52022904\n",
      "当前可用资金 999999996533.7303\n",
      "当前总资产 1000000001031.5426\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.09851918\n",
      "date 2020-01-22 close 46.00619336 open 45.17088538\n",
      "当前可用资金 999999996533.7303\n",
      "当前总资产 1000000001134.3497\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.09851918\n",
      "date 2020-01-23 close 44.14281402 open 45.49215768\n",
      "当前可用资金 999999996533.7303\n",
      "当前总资产 1000000000948.0117\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.09851918\n",
      "date 2020-02-03 close 39.70925628 open 39.70925628\n",
      "当前可用资金 999999996533.7303\n",
      "当前总资产 1000000000504.656\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.09851918\n",
      "date 2020-02-04 close 39.5164929 open 37.07482342\n",
      "当前可用资金 999999996533.7303\n",
      "当前总资产 1000000000485.3796\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.09851918\n",
      "date 2020-02-05 close 40.1590375 open 39.70925628\n",
      "当前可用资金 999999996533.7303\n",
      "当前总资产 1000000000549.6342\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.09851918\n",
      "date 2020-02-06 close 40.60881872 open 39.8377652\n",
      "当前可用资金 999999996533.7303\n",
      "当前总资产 1000000000594.6122\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.09851918\n",
      "date 2020-02-07 close 40.03052858 open 40.1590375\n",
      "当前可用资金 999999996533.7303\n",
      "当前总资产 1000000000536.7832\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.09851918\n",
      "date 2020-02-10 close 41.05859994 open 40.03052858\n",
      "当前可用资金 999999996533.7303\n",
      "当前总资产 1000000000639.5903\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.09851918\n",
      "date 2020-02-11 close 43.17899712 open 40.93009102\n",
      "当前可用资金 999999996533.7303\n",
      "当前总资产 1000000000851.63\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.09851918\n",
      "date 2020-02-12 close 42.53645252 open 42.7292159\n",
      "当前可用资金 999999996533.7303\n",
      "当前总资产 1000000000787.3756\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.09851918\n",
      "date 2020-02-13 close 43.95005064 open 42.66496144\n",
      "当前可用资金 999999996533.7303\n",
      "当前总资产 1000000000928.7354\n",
      "当前持仓量 100\n",
      "当前持仓成本 47.09851918\n",
      "2020-02-14, SELL EXECUTED, ref:4086, Price: 44.2713, Size: -100.00, Cost: 4709.8519, Comm 5.3126, Stock: 600466.SH\n",
      "date 2020-02-14 close 45.299394299999996 open 44.27132294\n",
      "当前可用资金 1000000000955.5502\n",
      "当前总资产 1000000000955.5502\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-02-17 close 45.299394299999996 open 45.42790322\n",
      "当前可用资金 1000000000955.5502\n",
      "当前总资产 1000000000955.5502\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-02-18 close 43.95005064 open 45.17088538\n",
      "当前可用资金 1000000000955.5502\n",
      "当前总资产 1000000000955.5502\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-02-19 close 44.14281402 open 43.88579618\n",
      "当前可用资金 1000000000955.5502\n",
      "当前总资产 1000000000955.5502\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-02-20 close 44.07855956 open 44.0143051\n",
      "当前可用资金 1000000000955.5502\n",
      "当前总资产 1000000000955.5502\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-02-21 close 43.50026942 open 43.88579618\n",
      "当前可用资金 1000000000955.5502\n",
      "当前总资产 1000000000955.5502\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-02-24 close 42.47219806 open 43.43601496\n",
      "当前可用资金 1000000000955.5502\n",
      "当前总资产 1000000000955.5502\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-02-25, BUY EXECUTED, ref:4087，Price: 41.6369, Size: 100.00, Cost: 4163.6890, Comm 0.8327, Stock: 600466.SH\n",
      "date 2020-02-25 close 42.34368914 open 41.63689008\n",
      "当前可用资金 999999996791.0284\n",
      "当前总资产 1000000001025.3973\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.63689008\n",
      "date 2020-02-26 close 42.66496144 open 41.95816238\n",
      "当前可用资金 999999996791.0284\n",
      "当前总资产 1000000001057.5245\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.63689008\n",
      "date 2020-02-27 close 42.66496144 open 42.98623374\n",
      "当前可用资金 999999996791.0284\n",
      "当前总资产 1000000001057.5245\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.63689008\n",
      "date 2020-02-28 close 41.70114454 open 41.70114454\n",
      "当前可用资金 999999996791.0284\n",
      "当前总资产 1000000000961.143\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.63689008\n",
      "date 2020-03-02 close 44.59259524 open 42.15092576\n",
      "当前可用资金 999999996791.0284\n",
      "当前总资产 1000000001250.288\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.63689008\n",
      "date 2020-03-03 close 43.82154172 open 45.299394299999996\n",
      "当前可用资金 999999996791.0284\n",
      "当前总资产 1000000001173.1826\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.63689008\n",
      "date 2020-03-04 close 45.74917552 open 43.75728726\n",
      "当前可用资金 999999996791.0284\n",
      "当前总资产 1000000001365.946\n",
      "当前持仓量 100\n",
      "当前持仓成本 41.63689008\n",
      "2020-03-05, SELL EXECUTED, ref:4088, Price: 45.3636, Size: -100.00, Cost: 4163.6890, Comm 5.4436, Stock: 600466.SH\n",
      "date 2020-03-05 close 45.87768444 open 45.36364876\n",
      "当前可用资金 1000000001321.9497\n",
      "当前总资产 1000000001321.9497\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-03-06 close 44.0143051 open 45.10663092\n",
      "当前可用资金 1000000001321.9497\n",
      "当前总资产 1000000001321.9497\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-03-09 close 41.70114454 open 42.92197928\n",
      "当前可用资金 1000000001321.9497\n",
      "当前总资产 1000000001321.9497\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-03-10 close 42.53645252 open 41.31561778\n",
      "当前可用资金 1000000001321.9497\n",
      "当前总资产 1000000001321.9497\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-03-11 close 43.24325158 open 43.050488200000004\n",
      "当前可用资金 1000000001321.9497\n",
      "当前总资产 1000000001321.9497\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-03-12, BUY EXECUTED, ref:4089，Price: 42.7935, Size: 100.00, Cost: 4279.3470, Comm 0.8559, Stock: 600466.SH\n",
      "date 2020-03-12 close 41.95816238 open 42.79347036\n",
      "当前可用资金 999999997041.7468\n",
      "当前总资产 1000000001237.5631\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.79347036\n",
      "date 2020-03-13 close 41.05859994 open 40.03052858\n",
      "当前可用资金 999999997041.7468\n",
      "当前总资产 1000000001147.6068\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.79347036\n",
      "date 2020-03-16 close 40.1590375 open 41.18710886\n",
      "当前可用资金 999999997041.7468\n",
      "当前总资产 1000000001057.6506\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.79347036\n",
      "date 2020-03-17 close 39.96627412 open 39.96627412\n",
      "当前可用资金 999999997041.7468\n",
      "当前总资产 1000000001038.3743\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.79347036\n",
      "date 2020-03-18 close 38.552676 open 40.1590375\n",
      "当前可用资金 999999997041.7468\n",
      "当前总资产 1000000000897.0144\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.79347036\n",
      "date 2020-03-19 close 37.97438586 open 38.42416708\n",
      "当前可用资金 999999997041.7468\n",
      "当前总资产 1000000000839.1854\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.79347036\n",
      "date 2020-03-20 close 38.42416708 open 38.16714924\n",
      "当前可用资金 999999997041.7468\n",
      "当前总资产 1000000000884.1636\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.79347036\n",
      "date 2020-03-23 close 36.68929666 open 36.75355112\n",
      "当前可用资金 999999997041.7468\n",
      "当前总资产 1000000000710.6765\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.79347036\n",
      "date 2020-03-24 close 38.16714924 open 37.33184126\n",
      "当前可用资金 999999997041.7468\n",
      "当前总资产 1000000000858.4618\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.79347036\n",
      "date 2020-03-25 close 39.8377652 open 38.93820276\n",
      "当前可用资金 999999997041.7468\n",
      "当前总资产 1000000001025.5233\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.79347036\n",
      "date 2020-03-26 close 39.45223844 open 39.38798398\n",
      "当前可用资金 999999997041.7468\n",
      "当前总资产 1000000000986.9707\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.79347036\n",
      "date 2020-03-27 close 40.35180088 open 40.1590375\n",
      "当前可用资金 999999997041.7468\n",
      "当前总资产 1000000001076.9269\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.79347036\n",
      "date 2020-03-30 close 39.70925628 open 39.5164929\n",
      "当前可用资金 999999997041.7468\n",
      "当前总资产 1000000001012.6725\n",
      "当前持仓量 100\n",
      "当前持仓成本 42.79347036\n",
      "2020-03-31, SELL EXECUTED, ref:4090, Price: 40.1590, Size: -100.00, Cost: 4279.3470, Comm 4.8191, Stock: 600466.SH\n",
      "date 2020-03-31 close 38.74543938 open 40.1590375\n",
      "当前可用资金 1000000001052.8315\n",
      "当前总资产 1000000001052.8315\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-04-01 close 38.48842154 open 38.93820276\n",
      "当前可用资金 1000000001052.8315\n",
      "当前总资产 1000000001052.8315\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-04-02 close 38.93820276 open 38.552676\n",
      "当前可用资金 1000000001052.8315\n",
      "当前总资产 1000000001052.8315\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-04-03 close 38.68118492 open 39.00245722\n",
      "当前可用资金 1000000001052.8315\n",
      "当前总资产 1000000001052.8315\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-04-07 close 39.45223844 open 39.25947506\n",
      "当前可用资金 1000000001052.8315\n",
      "当前总资产 1000000001052.8315\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-04-08, BUY EXECUTED, ref:4091，Price: 39.2595, Size: 100.00, Cost: 3925.9475, Comm 0.7852, Stock: 600466.SH\n",
      "date 2020-04-08 close 39.8377652 open 39.25947506\n",
      "当前可用资金 999999997126.0989\n",
      "当前总资产 1000000001109.8754\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "date 2020-04-09 close 39.58074736 open 39.96627412\n",
      "当前可用资金 999999997126.0989\n",
      "当前总资产 1000000001084.1736\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "date 2020-04-10 close 39.45223844 open 39.77351074\n",
      "当前可用资金 999999997126.0989\n",
      "当前总资产 1000000001071.3228\n",
      "当前持仓量 100\n",
      "当前持仓成本 39.25947506\n",
      "2020-04-13, SELL EXECUTED, ref:4092, Price: 39.4522, Size: -100.00, Cost: 3925.9475, Comm 4.7343, Stock: 600466.SH\n",
      "date 2020-04-13 close 39.5164929 open 39.45223844\n",
      "当前可用资金 1000000001066.5885\n",
      "当前总资产 1000000001066.5885\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-04-14 close 40.09478304 open 39.5164929\n",
      "当前可用资金 1000000001066.5885\n",
      "当前总资产 1000000001066.5885\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-04-15 close 39.64500182 open 40.1590375\n",
      "当前可用资金 1000000001066.5885\n",
      "当前总资产 1000000001066.5885\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-04-16 close 39.58074736 open 39.5164929\n",
      "当前可用资金 1000000001066.5885\n",
      "当前总资产 1000000001066.5885\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-04-17 close 39.58074736 open 39.90201966\n",
      "当前可用资金 1000000001066.5885\n",
      "当前总资产 1000000001066.5885\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-04-20 close 38.2314037 open 39.58074736\n",
      "当前可用资金 1000000001066.5885\n",
      "当前总资产 1000000001066.5885\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-04-21, BUY EXECUTED, ref:4093，Price: 37.9101, Size: 100.00, Cost: 3791.0131, Comm 0.7582, Stock: 600466.SH\n",
      "date 2020-04-21 close 37.07482342 open 37.910131400000004\n",
      "当前可用资金 999999997274.8171\n",
      "当前总资产 1000000000982.2994\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "date 2020-04-22 close 37.13907788 open 36.68929666\n",
      "当前可用资金 999999997274.8171\n",
      "当前总资产 1000000000988.725\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "date 2020-04-23 close 36.75355112 open 37.07482342\n",
      "当前可用资金 999999997274.8171\n",
      "当前总资产 1000000000950.1722\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "date 2020-04-24 close 36.04675206 open 36.88206004\n",
      "当前可用资金 999999997274.8171\n",
      "当前总资产 1000000000879.4923\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "date 2020-04-27 close 36.43227882 open 36.11100652\n",
      "当前可用资金 999999997274.8171\n",
      "当前总资产 1000000000918.045\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "date 2020-04-28 close 35.40420746 open 36.43227882\n",
      "当前可用资金 999999997274.8171\n",
      "当前总资产 1000000000815.2379\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "date 2020-04-29 close 36.04675206 open 35.40420746\n",
      "当前可用资金 999999997274.8171\n",
      "当前总资产 1000000000879.4923\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "date 2020-04-30 close 37.39609572 open 36.04675206\n",
      "当前可用资金 999999997274.8171\n",
      "当前总资产 1000000001014.4268\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "date 2020-05-06 close 36.17526098 open 36.6250422\n",
      "当前可用资金 999999997274.8171\n",
      "当前总资产 1000000000892.3433\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "date 2020-05-07 close 35.53271638 open 35.91824314\n",
      "当前可用资金 999999997274.8171\n",
      "当前总资产 1000000000828.0887\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "date 2020-05-08 close 35.9824976 open 35.6612253\n",
      "当前可用资金 999999997274.8171\n",
      "当前总资产 1000000000873.0669\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "date 2020-05-11 close 35.9824976 open 36.36802436\n",
      "当前可用资金 999999997274.8171\n",
      "当前总资产 1000000000873.0669\n",
      "当前持仓量 100\n",
      "当前持仓成本 37.910131400000004\n",
      "2020-05-12, SELL EXECUTED, ref:4094, Price: 35.9825, Size: -100.00, Cost: 3791.0131, Comm 4.3179, Stock: 600466.SH\n",
      "date 2020-05-12 close 35.339953 open 35.9824976\n",
      "当前可用资金 1000000000868.749\n",
      "当前总资产 1000000000868.749\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-05-13, BUY EXECUTED, ref:4095，Price: 35.2114, Size: 100.00, Cost: 3521.1444, Comm 0.7042, Stock: 600466.SH\n",
      "date 2020-05-13 close 35.018680700000004 open 35.21144408\n",
      "当前可用资金 999999997346.9004\n",
      "当前总资产 1000000000848.7684\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-14 close 34.6974084 open 35.018680700000004\n",
      "当前可用资金 999999997346.9004\n",
      "当前总资产 1000000000816.6412\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-15 close 34.63315394 open 34.6974084\n",
      "当前可用资金 999999997346.9004\n",
      "当前总资产 1000000000810.2158\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-18 close 34.56889948 open 34.89017178\n",
      "当前可用资金 999999997346.9004\n",
      "当前总资产 1000000000803.7903\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-19 close 33.92635488 open 34.76166286\n",
      "当前可用资金 999999997346.9004\n",
      "当前总资产 1000000000739.5359\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-20 close 33.54082812 open 33.733591499999996\n",
      "当前可用资金 999999997346.9004\n",
      "当前总资产 1000000000700.9832\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-21 close 32.89828352 open 33.66933704\n",
      "当前可用资金 999999997346.9004\n",
      "当前总资产 1000000000636.7288\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-22 close 32.38424784 open 32.89828352\n",
      "当前可用资金 999999997346.9004\n",
      "当前总资产 1000000000585.3252\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-25 close 32.96253798 open 32.4485023\n",
      "当前可用资金 999999997346.9004\n",
      "当前总资产 1000000000643.1542\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-26 close 32.96253798 open 33.02679244\n",
      "当前可用资金 999999997346.9004\n",
      "当前总资产 1000000000643.1542\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-27 close 33.21955582 open 32.89828352\n",
      "当前可用资金 999999997346.9004\n",
      "当前总资产 1000000000668.856\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-28 close 33.28381028 open 33.15530136\n",
      "当前可用资金 999999997346.9004\n",
      "当前总资产 1000000000675.2814\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-05-29 close 32.89828352 open 33.21955582\n",
      "当前可用资金 999999997346.9004\n",
      "当前总资产 1000000000636.7288\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-06-01 close 33.34806474 open 32.83402906\n",
      "当前可用资金 999999997346.9004\n",
      "当前总资产 1000000000681.7069\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "date 2020-06-02 close 34.24762718 open 33.28381028\n",
      "当前可用资金 999999997346.9004\n",
      "当前总资产 1000000000771.6631\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.21144408\n",
      "2020-06-03, SELL EXECUTED, ref:4096, Price: 34.3119, Size: -100.00, Cost: 3521.1444, Comm 4.1174, Stock: 600466.SH\n",
      "date 2020-06-03 close 33.733591499999996 open 34.31188164\n",
      "当前可用资金 1000000000773.9711\n",
      "当前总资产 1000000000773.9711\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-06-04 close 33.54082812 open 33.86210042\n",
      "当前可用资金 1000000000773.9711\n",
      "当前总资产 1000000000773.9711\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-06-05 close 33.34806474 open 33.66933704\n",
      "当前可用资金 1000000000773.9711\n",
      "当前总资产 1000000000773.9711\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-06-08 close 33.92635488 open 33.54082812\n",
      "当前可用资金 1000000000773.9711\n",
      "当前总资产 1000000000773.9711\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-06-09 close 33.47657366 open 33.86210042\n",
      "当前可用资金 1000000000773.9711\n",
      "当前总资产 1000000000773.9711\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-06-10 close 33.21955582 open 33.60508258\n",
      "当前可用资金 1000000000773.9711\n",
      "当前总资产 1000000000773.9711\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-06-11 close 32.769774600000005 open 33.21955582\n",
      "当前可用资金 1000000000773.9711\n",
      "当前总资产 1000000000773.9711\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-06-12, BUY EXECUTED, ref:4097，Price: 32.2557, Size: 100.00, Cost: 3225.5739, Comm 0.6451, Stock: 600466.SH\n",
      "date 2020-06-12 close 32.70552014 open 32.25573892\n",
      "当前可用资金 999999997547.7521\n",
      "当前总资产 1000000000818.3041\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.25573892\n",
      "date 2020-06-15 close 32.51275676 open 32.64126568\n",
      "当前可用资金 999999997547.7521\n",
      "当前总资产 1000000000799.0277\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.25573892\n",
      "date 2020-06-16 close 33.02679244 open 32.769774600000005\n",
      "当前可用资金 999999997547.7521\n",
      "当前总资产 1000000000850.4313\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.25573892\n",
      "date 2020-06-17 close 32.83402906 open 32.96253798\n",
      "当前可用资金 999999997547.7521\n",
      "当前总资产 1000000000831.155\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.25573892\n",
      "date 2020-06-18 close 34.82591732 open 32.83402906\n",
      "当前可用资金 999999997547.7521\n",
      "当前总资产 1000000001030.3438\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.25573892\n",
      "date 2020-06-19 close 34.63315394 open 34.76166286\n",
      "当前可用资金 999999997547.7521\n",
      "当前总资产 1000000001011.0675\n",
      "当前持仓量 100\n",
      "当前持仓成本 32.25573892\n",
      "2020-06-22, SELL EXECUTED, ref:4098, Price: 34.6332, Size: -100.00, Cost: 3225.5739, Comm 4.1560, Stock: 600466.SH\n",
      "date 2020-06-22 close 34.376136100000004 open 34.63315394\n",
      "当前可用资金 1000000001006.9115\n",
      "当前总资产 1000000001006.9115\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-06-23 close 33.60508258 open 35.018680700000004\n",
      "当前可用资金 1000000001006.9115\n",
      "当前总资产 1000000001006.9115\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-06-24 close 34.95442624 open 33.79784596\n",
      "当前可用资金 1000000001006.9115\n",
      "当前总资产 1000000001006.9115\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-06-29 close 34.44039056 open 35.21144408\n",
      "当前可用资金 1000000001006.9115\n",
      "当前总资产 1000000001006.9115\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-06-30 close 34.63315394 open 34.56889948\n",
      "当前可用资金 1000000001006.9115\n",
      "当前总资产 1000000001006.9115\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-07-01 close 36.75355112 open 34.89017178\n",
      "当前可用资金 1000000001006.9115\n",
      "当前总资产 1000000001006.9115\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-07-02 close 38.29565816 open 36.75355112\n",
      "当前可用资金 1000000001006.9115\n",
      "当前总资产 1000000001006.9115\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-07-03 close 38.61693046 open 38.68118492\n",
      "当前可用资金 1000000001006.9115\n",
      "当前总资产 1000000001006.9115\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-07-06 close 41.04736896 open 39.29205384\n",
      "当前可用资金 1000000001006.9115\n",
      "当前总资产 1000000001006.9115\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-07-07 close 40.1697114 open 41.519953799999996\n",
      "当前可用资金 1000000001006.9115\n",
      "当前总资产 1000000001006.9115\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-07-08 close 40.1697114 open 39.832150799999994\n",
      "当前可用资金 1000000001006.9115\n",
      "当前总资产 1000000001006.9115\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-07-09 close 40.8448326 open 40.23722352\n",
      "当前可用资金 1000000001006.9115\n",
      "当前总资产 1000000001006.9115\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-07-10 close 39.22454172 open 40.30473564\n",
      "当前可用资金 1000000001006.9115\n",
      "当前总资产 1000000001006.9115\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-07-13 close 39.832150799999994 open 39.35956596\n",
      "当前可用资金 1000000001006.9115\n",
      "当前总资产 1000000001006.9115\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-07-14 close 39.29205384 open 39.89966292\n",
      "当前可用资金 1000000001006.9115\n",
      "当前总资产 1000000001006.9115\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-07-15 close 38.88698112 open 39.69712656\n",
      "当前可用资金 1000000001006.9115\n",
      "当前总资产 1000000001006.9115\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-07-16, BUY EXECUTED, ref:4099，Price: 38.7520, Size: 100.00, Cost: 3875.1957, Comm 0.7750, Stock: 600466.SH\n",
      "date 2020-07-16 close 37.60425084 open 38.75195688\n",
      "当前可用资金 999999997130.9408\n",
      "当前总资产 1000000000891.3658\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.75195688\n",
      "date 2020-07-17 close 36.92912964 open 37.60425084\n",
      "当前可用资金 999999997130.9408\n",
      "当前总资产 1000000000823.8538\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.75195688\n",
      "date 2020-07-20 close 38.27937204 open 37.26669024\n",
      "当前可用资金 999999997130.9408\n",
      "当前总资产 1000000000958.878\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.75195688\n",
      "date 2020-07-21 close 38.21185992 open 38.54942052\n",
      "当前可用资金 999999997130.9408\n",
      "当前总资产 1000000000952.1268\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.75195688\n",
      "date 2020-07-22 close 38.14434779999999 open 38.21185992\n",
      "当前可用资金 999999997130.9408\n",
      "当前总资产 1000000000945.3756\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.75195688\n",
      "date 2020-07-23 close 37.60425084 open 37.8067872\n",
      "当前可用资金 999999997130.9408\n",
      "当前总资产 1000000000891.3658\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.75195688\n",
      "date 2020-07-24 close 36.25400844 open 37.33420236\n",
      "当前可用资金 999999997130.9408\n",
      "当前总资产 1000000000756.3417\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.75195688\n",
      "date 2020-07-27 close 35.57888724 open 36.456544799999996\n",
      "当前可用资金 999999997130.9408\n",
      "当前总资产 1000000000688.8295\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.75195688\n",
      "date 2020-07-28 close 35.98395996 open 35.71391148\n",
      "当前可用资金 999999997130.9408\n",
      "当前总资产 1000000000729.3368\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.75195688\n",
      "date 2020-07-29 close 36.38903268 open 35.84893572\n",
      "当前可用资金 999999997130.9408\n",
      "当前总资产 1000000000769.8441\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.75195688\n",
      "date 2020-07-30 close 36.05147208 open 36.32152056\n",
      "当前可用资金 999999997130.9408\n",
      "当前总资产 1000000000736.088\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.75195688\n",
      "date 2020-07-31 close 36.1189842 open 35.84893572\n",
      "当前可用资金 999999997130.9408\n",
      "当前总资产 1000000000742.8392\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.75195688\n",
      "date 2020-08-03 close 36.7941054 open 36.38903268\n",
      "当前可用资金 999999997130.9408\n",
      "当前总资产 1000000000810.3513\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.75195688\n",
      "date 2020-08-04 close 37.06415388 open 36.99664176\n",
      "当前可用资金 999999997130.9408\n",
      "当前总资产 1000000000837.3562\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.75195688\n",
      "date 2020-08-05 close 36.456544799999996 open 36.92912964\n",
      "当前可用资金 999999997130.9408\n",
      "当前总资产 1000000000776.5953\n",
      "当前持仓量 100\n",
      "当前持仓成本 38.75195688\n",
      "2020-08-06, SELL EXECUTED, ref:4100, Price: 36.4565, Size: -100.00, Cost: 3875.1957, Comm 4.3748, Stock: 600466.SH\n",
      "date 2020-08-06 close 36.18649632 open 36.456544799999996\n",
      "当前可用资金 1000000000772.2206\n",
      "当前总资产 1000000000772.2206\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-08-07 close 35.51137512 open 36.18649632\n",
      "当前可用资金 1000000000772.2206\n",
      "当前总资产 1000000000772.2206\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-08-10 close 36.456544799999996 open 35.64639936\n",
      "当前可用资金 1000000000772.2206\n",
      "当前总资产 1000000000772.2206\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-08-11 close 35.781423600000004 open 36.456544799999996\n",
      "当前可用资金 1000000000772.2206\n",
      "当前总资产 1000000000772.2206\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-08-12, BUY EXECUTED, ref:4101，Price: 35.7814, Size: 100.00, Cost: 3578.1424, Comm 0.7156, Stock: 600466.SH\n",
      "date 2020-08-12 close 35.91644784 open 35.781423600000004\n",
      "当前可用资金 999999997193.3627\n",
      "当前总资产 1000000000785.0074\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.781423600000004\n",
      "date 2020-08-13 close 36.05147208 open 35.98395996\n",
      "当前可用资金 999999997193.3627\n",
      "当前总资产 1000000000798.5099\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.781423600000004\n",
      "date 2020-08-14 close 36.86161752 open 36.05147208\n",
      "当前可用资金 999999997193.3627\n",
      "当前总资产 1000000000879.5244\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.781423600000004\n",
      "date 2020-08-17 close 37.67176296 open 36.99664176\n",
      "当前可用资金 999999997193.3627\n",
      "当前总资产 1000000000960.539\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.781423600000004\n",
      "2020-08-18, SELL EXECUTED, ref:4102, Price: 37.6718, Size: -100.00, Cost: 3578.1424, Comm 4.5206, Stock: 600466.SH\n",
      "date 2020-08-18 close 37.06415388 open 37.67176296\n",
      "当前可用资金 1000000000956.0183\n",
      "当前总资产 1000000000956.0183\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-08-19 close 36.59156904 open 36.99664176\n",
      "当前可用资金 1000000000956.0183\n",
      "当前总资产 1000000000956.0183\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-08-20 close 36.52405692 open 36.456544799999996\n",
      "当前可用资金 1000000000956.0183\n",
      "当前总资产 1000000000956.0183\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-08-21 close 36.65908116 open 36.59156904\n",
      "当前可用资金 1000000000956.0183\n",
      "当前总资产 1000000000956.0183\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-08-24 close 36.65908116 open 36.65908116\n",
      "当前可用资金 1000000000956.0183\n",
      "当前总资产 1000000000956.0183\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-08-25 close 36.25400844 open 36.65908116\n",
      "当前可用资金 1000000000956.0183\n",
      "当前总资产 1000000000956.0183\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-08-26, BUY EXECUTED, ref:4103，Price: 36.3215, Size: 100.00, Cost: 3632.1521, Comm 0.7264, Stock: 600466.SH\n",
      "date 2020-08-26 close 35.51137512 open 36.32152056\n",
      "当前可用资金 999999997323.1398\n",
      "当前总资产 1000000000874.2772\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.32152056\n",
      "date 2020-08-27 close 35.51137512 open 35.51137512\n",
      "当前可用资金 999999997323.1398\n",
      "当前总资产 1000000000874.2772\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.32152056\n",
      "date 2020-08-28 close 36.456544799999996 open 35.781423600000004\n",
      "当前可用资金 999999997323.1398\n",
      "当前总资产 1000000000968.7943\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.32152056\n",
      "date 2020-08-31 close 37.131665999999996 open 36.7941054\n",
      "当前可用资金 999999997323.1398\n",
      "当前总资产 1000000001036.3064\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.32152056\n",
      "date 2020-09-01 close 36.7941054 open 37.131665999999996\n",
      "当前可用资金 999999997323.1398\n",
      "当前总资产 1000000001002.5503\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.32152056\n",
      "date 2020-09-02 close 36.7941054 open 36.99664176\n",
      "当前可用资金 999999997323.1398\n",
      "当前总资产 1000000001002.5503\n",
      "当前持仓量 100\n",
      "当前持仓成本 36.32152056\n",
      "2020-09-03, SELL EXECUTED, ref:4104, Price: 36.8616, Size: -100.00, Cost: 3632.1521, Comm 4.4234, Stock: 600466.SH\n",
      "date 2020-09-03 close 36.32152056 open 36.86161752\n",
      "当前可用资金 1000000001004.8782\n",
      "当前总资产 1000000001004.8782\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-09-04 close 36.05147208 open 35.91644784\n",
      "当前可用资金 1000000001004.8782\n",
      "当前总资产 1000000001004.8782\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-09-07 close 35.64639936 open 36.05147208\n",
      "当前可用资金 1000000001004.8782\n",
      "当前总资产 1000000001004.8782\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-09-08 close 35.98395996 open 35.781423600000004\n",
      "当前可用资金 1000000001004.8782\n",
      "当前总资产 1000000001004.8782\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-09-09, BUY EXECUTED, ref:4105，Price: 35.7139, Size: 100.00, Cost: 3571.3911, Comm 0.7143, Stock: 600466.SH\n",
      "date 2020-09-09 close 36.18649632 open 35.71391148\n",
      "当前可用资金 999999997432.7728\n",
      "当前总资产 1000000001051.4225\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.71391148\n",
      "date 2020-09-10 close 36.86161752 open 36.456544799999996\n",
      "当前可用资金 999999997432.7728\n",
      "当前总资产 1000000001118.9346\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.71391148\n",
      "date 2020-09-11 close 36.32152056 open 36.52405692\n",
      "当前可用资金 999999997432.7728\n",
      "当前总资产 1000000001064.9249\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.71391148\n",
      "date 2020-09-14 close 36.1189842 open 36.38903268\n",
      "当前可用资金 999999997432.7728\n",
      "当前总资产 1000000001044.6713\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.71391148\n",
      "date 2020-09-15 close 36.38903268 open 36.1189842\n",
      "当前可用资金 999999997432.7728\n",
      "当前总资产 1000000001071.6761\n",
      "当前持仓量 100\n",
      "当前持仓成本 35.71391148\n",
      "2020-09-16, SELL EXECUTED, ref:4106, Price: 36.3890, Size: -100.00, Cost: 3571.3911, Comm 4.3667, Stock: 600466.SH\n",
      "date 2020-09-16 close 37.53673872 open 36.38903268\n",
      "当前可用资金 1000000001067.3094\n",
      "当前总资产 1000000001067.3094\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-09-17 close 36.7941054 open 37.60425084\n",
      "当前可用资金 1000000001067.3094\n",
      "当前总资产 1000000001067.3094\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-09-18 close 38.54942052 open 36.86161752\n",
      "当前可用资金 1000000001067.3094\n",
      "当前总资产 1000000001067.3094\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-09-21 close 37.87429932 open 38.34688416\n",
      "当前可用资金 1000000001067.3094\n",
      "当前总资产 1000000001067.3094\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-09-22 close 37.131665999999996 open 37.53673872\n",
      "当前可用资金 1000000001067.3094\n",
      "当前总资产 1000000001067.3094\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-09-23 close 36.7941054 open 37.33420236\n",
      "当前可用资金 1000000001067.3094\n",
      "当前总资产 1000000001067.3094\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-09-24 close 35.98395996 open 36.59156904\n",
      "当前可用资金 1000000001067.3094\n",
      "当前总资产 1000000001067.3094\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-09-25 close 34.70122968 open 35.98395996\n",
      "当前可用资金 1000000001067.3094\n",
      "当前总资产 1000000001067.3094\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-09-28, BUY EXECUTED, ref:4107，Price: 34.6337, Size: 100.00, Cost: 3463.3718, Comm 0.6927, Stock: 600466.SH\n",
      "date 2020-09-28 close 35.03879028 open 34.63371756\n",
      "当前可用资金 999999997603.2451\n",
      "当前总资产 1000000001107.1241\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.63371756\n",
      "date 2020-09-29 close 34.431181200000005 open 35.03879028\n",
      "当前可用资金 999999997603.2451\n",
      "当前总资产 1000000001046.3633\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.63371756\n",
      "date 2020-09-30 close 33.95859636 open 34.431181200000005\n",
      "当前可用资金 999999997603.2451\n",
      "当前总资产 1000000000999.1047\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.63371756\n",
      "date 2020-10-09 close 34.36366908 open 34.29615696\n",
      "当前可用资金 999999997603.2451\n",
      "当前总资产 1000000001039.612\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.63371756\n",
      "date 2020-10-12 close 35.443863 open 34.36366908\n",
      "当前可用资金 999999997603.2451\n",
      "当前总资产 1000000001147.6315\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.63371756\n",
      "date 2020-10-13 close 35.1063024 open 35.443863\n",
      "当前可用资金 999999997603.2451\n",
      "当前总资产 1000000001113.8754\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.63371756\n",
      "date 2020-10-14 close 34.63371756 open 34.90376604\n",
      "当前可用资金 999999997603.2451\n",
      "当前总资产 1000000001066.6168\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.63371756\n",
      "date 2020-10-15 close 34.63371756 open 34.70122968\n",
      "当前可用资金 999999997603.2451\n",
      "当前总资产 1000000001066.6168\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.63371756\n",
      "2020-10-16, SELL EXECUTED, ref:4108, Price: 34.4987, Size: -100.00, Cost: 3463.3718, Comm 4.1398, Stock: 600466.SH\n",
      "date 2020-10-16 close 34.768741799999994 open 34.49869332\n",
      "当前可用资金 1000000001048.9746\n",
      "当前总资产 1000000001048.9746\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-10-19 close 34.431181200000005 open 34.83625392\n",
      "当前可用资金 1000000001048.9746\n",
      "当前总资产 1000000001048.9746\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-10-20 close 34.16113272 open 34.49869332\n",
      "当前可用资金 1000000001048.9746\n",
      "当前总资产 1000000001048.9746\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-10-21, BUY EXECUTED, ref:4109，Price: 34.2962, Size: 100.00, Cost: 3429.6157, Comm 0.6859, Stock: 600466.SH\n",
      "date 2020-10-21 close 34.22864484 open 34.29615696\n",
      "当前可用资金 999999997618.673\n",
      "当前总资产 1000000001041.5375\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-10-22 close 34.36366908 open 34.16113272\n",
      "当前可用资金 999999997618.673\n",
      "当前总资产 1000000001055.0399\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-10-23 close 34.56620544 open 34.49869332\n",
      "当前可用资金 999999997618.673\n",
      "当前总资产 1000000001075.2935\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-10-26 close 34.22864484 open 34.431181200000005\n",
      "当前可用资金 999999997618.673\n",
      "当前总资产 1000000001041.5375\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-10-27 close 33.82357212 open 34.0936206\n",
      "当前可用资金 999999997618.673\n",
      "当前总资产 1000000001001.0302\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-10-28 close 33.48601152 open 33.75606\n",
      "当前可用资金 999999997618.673\n",
      "当前总资产 1000000000967.2742\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-10-29 close 33.68854788 open 33.4184994\n",
      "当前可用资金 999999997618.673\n",
      "当前总资产 1000000000987.5277\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-10-30 close 33.28347516 open 33.62103576\n",
      "当前可用资金 999999997618.673\n",
      "当前总资产 1000000000947.0205\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-11-02 close 33.82357212 open 33.62103576\n",
      "当前可用资金 999999997618.673\n",
      "当前总资产 1000000001001.0302\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-11-03 close 34.0936206 open 34.02610848\n",
      "当前可用资金 999999997618.673\n",
      "当前总资产 1000000001028.035\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-11-04 close 33.55352364 open 34.0936206\n",
      "当前可用资金 999999997618.673\n",
      "当前总资产 1000000000974.0254\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-11-05 close 34.0936206 open 33.82357212\n",
      "当前可用资金 999999997618.673\n",
      "当前总资产 1000000001028.035\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-11-06 close 34.22864484 open 34.0936206\n",
      "当前可用资金 999999997618.673\n",
      "当前总资产 1000000001041.5375\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "2020-11-09, SELL EXECUTED, ref:4110, Price: 34.2286, Size: -100.00, Cost: 3429.6157, Comm 4.1074, Stock: 600466.SH\n",
      "date 2020-11-09 close 34.56620544 open 34.22864484\n",
      "当前可用资金 1000000001037.43\n",
      "当前总资产 1000000001037.43\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-10 close 34.16113272 open 34.70122968\n",
      "当前可用资金 1000000001037.43\n",
      "当前总资产 1000000001037.43\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-11 close 34.768741799999994 open 34.0936206\n",
      "当前可用资金 1000000001037.43\n",
      "当前总资产 1000000001037.43\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-12 close 34.36366908 open 34.70122968\n",
      "当前可用资金 1000000001037.43\n",
      "当前总资产 1000000001037.43\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-13 close 33.55352364 open 34.36366908\n",
      "当前可用资金 1000000001037.43\n",
      "当前总资产 1000000001037.43\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-16 close 34.0936206 open 33.62103576\n",
      "当前可用资金 1000000001037.43\n",
      "当前总资产 1000000001037.43\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-17 close 35.1063024 open 34.22864484\n",
      "当前可用资金 1000000001037.43\n",
      "当前总资产 1000000001037.43\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-18 close 34.97127816 open 35.17381452\n",
      "当前可用资金 1000000001037.43\n",
      "当前总资产 1000000001037.43\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-19 close 34.768741799999994 open 34.90376604\n",
      "当前可用资金 1000000001037.43\n",
      "当前总资产 1000000001037.43\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-20 close 34.768741799999994 open 34.63371756\n",
      "当前可用资金 1000000001037.43\n",
      "当前总资产 1000000001037.43\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-23 close 35.03879028 open 34.70122968\n",
      "当前可用资金 1000000001037.43\n",
      "当前总资产 1000000001037.43\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-24 close 34.70122968 open 35.03879028\n",
      "当前可用资金 1000000001037.43\n",
      "当前总资产 1000000001037.43\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-25 close 34.70122968 open 34.90376604\n",
      "当前可用资金 1000000001037.43\n",
      "当前总资产 1000000001037.43\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-26 close 34.63371756 open 34.63371756\n",
      "当前可用资金 1000000001037.43\n",
      "当前总资产 1000000001037.43\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-27 close 35.1063024 open 34.63371756\n",
      "当前可用资金 1000000001037.43\n",
      "当前总资产 1000000001037.43\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-11-30 close 34.83625392 open 35.24132664\n",
      "当前可用资金 1000000001037.43\n",
      "当前总资产 1000000001037.43\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-12-01, BUY EXECUTED, ref:4111，Price: 34.8363, Size: 100.00, Cost: 3483.6254, Comm 0.6967, Stock: 600466.SH\n",
      "date 2020-12-01 close 35.1063024 open 34.83625392\n",
      "当前可用资金 999999997553.1079\n",
      "当前总资产 1000000001063.7382\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.83625392\n",
      "2020-12-02, SELL EXECUTED, ref:4112, Price: 35.1063, Size: -100.00, Cost: 3483.6254, Comm 4.2128, Stock: 600466.SH\n",
      "date 2020-12-02 close 35.03879028 open 35.1063024\n",
      "当前可用资金 1000000001059.5254\n",
      "当前总资产 1000000001059.5254\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-12-03 close 34.70122968 open 35.1063024\n",
      "当前可用资金 1000000001059.5254\n",
      "当前总资产 1000000001059.5254\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2020-12-04 close 34.36366908 open 34.768741799999994\n",
      "当前可用资金 1000000001059.5254\n",
      "当前总资产 1000000001059.5254\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2020-12-07, BUY EXECUTED, ref:4113，Price: 34.2962, Size: 100.00, Cost: 3429.6157, Comm 0.6859, Stock: 600466.SH\n",
      "date 2020-12-07 close 33.89108424 open 34.29615696\n",
      "当前可用资金 999999997629.2238\n",
      "当前总资产 1000000001018.3322\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-08 close 33.89108424 open 33.95859636\n",
      "当前可用资金 999999997629.2238\n",
      "当前总资产 1000000001018.3322\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-09 close 33.55352364 open 33.95859636\n",
      "当前可用资金 999999997629.2238\n",
      "当前总资产 1000000000984.5762\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-10 close 33.55352364 open 33.55352364\n",
      "当前可用资金 999999997629.2238\n",
      "当前总资产 1000000000984.5762\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-11 close 33.14845092 open 33.48601152\n",
      "当前可用资金 999999997629.2238\n",
      "当前总资产 1000000000944.0688\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-14 close 33.4184994 open 33.21596304\n",
      "当前可用资金 999999997629.2238\n",
      "当前总资产 1000000000971.0737\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-15 close 33.21596304 open 33.35098728\n",
      "当前可用资金 999999997629.2238\n",
      "当前总资产 1000000000950.8201\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-16 close 32.87840244 open 33.080938800000006\n",
      "当前可用资金 999999997629.2238\n",
      "当前总资产 1000000000917.064\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-17 close 32.94591456 open 32.7433782\n",
      "当前可用资金 999999997629.2238\n",
      "当前总资产 1000000000923.8152\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-18 close 32.54084184 open 32.87840244\n",
      "当前可用资金 999999997629.2238\n",
      "当前总资产 1000000000883.308\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-21 close 32.54084184 open 32.54084184\n",
      "当前可用资金 999999997629.2238\n",
      "当前总资产 1000000000883.308\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-22 close 32.13576912 open 32.47332972\n",
      "当前可用资金 999999997629.2238\n",
      "当前总资产 1000000000842.8007\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-23 close 31.93323276 open 32.00074488\n",
      "当前可用资金 999999997629.2238\n",
      "当前总资产 1000000000822.547\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-24 close 31.19059944 open 32.068257\n",
      "当前可用资金 999999997629.2238\n",
      "当前总资产 1000000000748.2837\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-25 close 31.25811156 open 31.12308732\n",
      "当前可用资金 999999997629.2238\n",
      "当前总资产 1000000000755.0349\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-28 close 31.12308732 open 31.25811156\n",
      "当前可用资金 999999997629.2238\n",
      "当前总资产 1000000000741.5325\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-29 close 31.59567216 open 31.12308732\n",
      "当前可用资金 999999997629.2238\n",
      "当前总资产 1000000000788.791\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-30 close 31.52816004 open 31.46064792\n",
      "当前可用资金 999999997629.2238\n",
      "当前总资产 1000000000782.0398\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2020-12-31 close 31.25811156 open 31.25811156\n",
      "当前可用资金 999999997629.2238\n",
      "当前总资产 1000000000755.0349\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2021-01-04 close 30.0428934 open 31.19059944\n",
      "当前可用资金 999999997629.2238\n",
      "当前总资产 1000000000633.5131\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2021-01-05 close 30.11040552 open 29.90786916\n",
      "当前可用资金 999999997629.2238\n",
      "当前总资产 1000000000640.2643\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2021-01-06 close 30.0428934 open 30.0428934\n",
      "当前可用资金 999999997629.2238\n",
      "当前总资产 1000000000633.5131\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2021-01-07 close 29.84035704 open 30.0428934\n",
      "当前可用资金 999999997629.2238\n",
      "当前总资产 1000000000613.2594\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2021-01-08 close 29.97538128 open 29.705332799999997\n",
      "当前可用资金 999999997629.2238\n",
      "当前总资产 1000000000626.7618\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2021-01-11 close 29.63782068 open 29.97538128\n",
      "当前可用资金 999999997629.2238\n",
      "当前总资产 1000000000593.0059\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2021-01-12 close 29.63782068 open 29.63782068\n",
      "当前可用资金 999999997629.2238\n",
      "当前总资产 1000000000593.0059\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2021-01-13 close 29.90786916 open 29.57030856\n",
      "当前可用资金 999999997629.2238\n",
      "当前总资产 1000000000620.0106\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2021-01-14 close 30.44796612 open 29.84035704\n",
      "当前可用资金 999999997629.2238\n",
      "当前总资产 1000000000674.0204\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "date 2021-01-15 close 30.44796612 open 30.380453999999997\n",
      "当前可用资金 999999997629.2238\n",
      "当前总资产 1000000000674.0204\n",
      "当前持仓量 100\n",
      "当前持仓成本 34.29615696\n",
      "2021-01-18, SELL EXECUTED, ref:4114, Price: 30.3805, Size: -100.00, Cost: 3429.6157, Comm 3.6457, Stock: 600466.SH\n",
      "date 2021-01-18 close 30.44796612 open 30.380453999999997\n",
      "当前可用资金 1000000000663.6235\n",
      "当前总资产 1000000000663.6235\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2021-01-19 close 31.12308732 open 30.380453999999997\n",
      "当前可用资金 1000000000663.6235\n",
      "当前总资产 1000000000663.6235\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2021-01-20 close 30.58299036 open 31.055575199999996\n",
      "当前可用资金 1000000000663.6235\n",
      "当前总资产 1000000000663.6235\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2021-01-21 close 30.31294188 open 30.51547824\n",
      "当前可用资金 1000000000663.6235\n",
      "当前总资产 1000000000663.6235\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2021-01-22 close 29.77284492 open 30.24542976\n",
      "当前可用资金 1000000000663.6235\n",
      "当前总资产 1000000000663.6235\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "date 2021-01-25 close 28.96269948 open 29.57030856\n",
      "当前可用资金 1000000000663.6235\n",
      "当前总资产 1000000000663.6235\n",
      "当前持仓量 0\n",
      "当前持仓成本 0.0\n",
      "2021-01-26, BUY EXECUTED, ref:4115，Price: 28.9627, Size: 100.00, Cost: 2896.2699, Comm 0.5793, Stock: 600466.SH\n",
      "date 2021-01-26 close 28.76016312 open 28.96269948\n",
      "当前可用资金 999999997766.7744\n",
      "当前总资产 1000000000642.7908\n",
      "当前持仓量 100\n",
      "当前持仓成本 28.96269948\n",
      "date 2021-01-27 close 28.89518736 open 28.76016312\n",
      "当前可用资金 999999997766.7744\n",
      "当前总资产 1000000000656.2931\n",
      "当前持仓量 100\n",
      "当前持仓成本 28.96269948\n",
      "date 2021-01-28 close 28.76016312 open 28.82767524\n",
      "当前可用资金 999999997766.7744\n",
      "当前总资产 1000000000642.7908\n",
      "当前持仓量 100\n",
      "当前持仓成本 28.96269948\n"
     ]
    }
   ],
   "source": [
    "# 考虑佣金和印花税的股票百分比费用\n",
    "class StockCommission(bt.CommInfoBase):\n",
    "    params = (('stamp_duty', 0.001),\n",
    "              ('stocklike', True),  # 指定为期货模式\n",
    "              ('commtype', bt.CommInfoBase.COMM_PERC),  # 使用百分比费用模式\n",
    "              ('percabs', True),)  # commission 不以 % 为单位 # 印花税默认为 0.1%\n",
    "    \n",
    "    def _getcommission(self,size,price,pseudoexec):\n",
    "        if size>0: # 买入时，只考虑佣金\n",
    "            return abs(size) * price * self.p.commission\n",
    "        elif size<0: # 卖出时，同时考虑佣金和印花税\n",
    "            return abs(size) * price * (self.p.commission + self.p.stamp_duty)\n",
    "        else:\n",
    "            return 0\n",
    "  \n",
    "\n",
    "                \n",
    "# 实例化大脑\n",
    "cerebro1= bt.Cerebro()\n",
    "# 设置初始资金\n",
    "cerebro1.broker.set_cash(1000000000000)\n",
    "# 加载数据\n",
    "datafeed1 = bt.feeds.PandasData(dataname=data1, fromdate=datetime.datetime(2019,1,2), todate=datetime.datetime(2021,1,28))\n",
    "cerebro1.adddata(datafeed1, name='600466.SH')\n",
    "\n",
    "# 设置交易费用\n",
    "comminfo = StockCommission(commission=0.0002, stamp_duty=0.001) # 实例化 \n",
    "cerebro1.broker.addcommissioninfo(comminfo)\n",
    "\n",
    "# 添加策略\n",
    "cerebro1.addstrategy(TestStrategy)            \n",
    "# 启动回测\n",
    "result = cerebro1.run()  "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "metadata": {},
   "outputs": [],
   "source": [
    "date 2019-01-16 close 32.63307367 open 33.00320305\n",
    "当前可用资金 1000000000000.0\n",
    "当前总资产 1000000000000.0\n",
    "当前持仓量 0\n",
    "当前持仓成本 0.0\n",
    "2019-01-17, BUY EXECUTED, ref:479，Price: 32.6331, Size: 100.00, Cost: 3263.3074, Comm 0.6527, Stock: 600466.SH\n",
    "date 2019-01-17 close 32.0778796 open 32.63307367\n",
    "当前可用资金 999999996736.0399\n",
    "当前总资产 999999999943.8279\n",
    "当前持仓量 100\n",
    "当前持仓成本 32.63307367"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 39,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0.6526620000000001"
      ]
     },
     "execution_count": 39,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 2019-01-17 买入时只考虑 佣金： Cost * commission\n",
    "100 * 32.6331 * 0.0002"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "2019-01-29, SELL EXECUTED, ref:488, Price: 33.9285, Size: -100.00, Cost: 3263.3074, Comm 4.0714, Stock: 600466.SH\n",
    "date 2019-01-29 close 34.79216172 open 33.928526500000004\n",
    "当前可用资金 1000000000124.8212\n",
    "当前总资产 1000000000124.8212\n",
    "当前持仓量 0\n",
    "当前持仓成本 0.0"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 40,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "4.071420000000001"
      ]
     },
     "execution_count": 40,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#  2019-01-29 卖出时 考虑佣金和印花税 \n",
    "100 * 33.9285 * (0.0002+0.001)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 五、成交量限制管理"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 50,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 将 原始数据的 volume 缩小 10000 倍，方便模拟结果\n",
    "data1_ = data1.copy()\n",
    "data1_.loc[:,'volume'] = (data1_.loc[:,'volume'] / 10000).astype('int')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 51,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>open</th>\n",
       "      <th>high</th>\n",
       "      <th>low</th>\n",
       "      <th>close</th>\n",
       "      <th>volume</th>\n",
       "      <th>openinterest</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>datetime</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2019-01-02</th>\n",
       "      <td>33.064891</td>\n",
       "      <td>33.496709</td>\n",
       "      <td>31.954503</td>\n",
       "      <td>32.386321</td>\n",
       "      <td>1062</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-01-03</th>\n",
       "      <td>32.262944</td>\n",
       "      <td>32.941515</td>\n",
       "      <td>31.399309</td>\n",
       "      <td>31.831127</td>\n",
       "      <td>860</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-01-04</th>\n",
       "      <td>31.399309</td>\n",
       "      <td>33.558397</td>\n",
       "      <td>31.337621</td>\n",
       "      <td>33.496709</td>\n",
       "      <td>1276</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-01-07</th>\n",
       "      <td>33.496709</td>\n",
       "      <td>34.360344</td>\n",
       "      <td>33.373332</td>\n",
       "      <td>33.620085</td>\n",
       "      <td>1058</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-01-08</th>\n",
       "      <td>33.311644</td>\n",
       "      <td>34.113591</td>\n",
       "      <td>32.694762</td>\n",
       "      <td>33.743462</td>\n",
       "      <td>1001</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2021-01-22</th>\n",
       "      <td>30.245430</td>\n",
       "      <td>30.312942</td>\n",
       "      <td>29.502796</td>\n",
       "      <td>29.772845</td>\n",
       "      <td>1718</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2021-01-25</th>\n",
       "      <td>29.570309</td>\n",
       "      <td>29.570309</td>\n",
       "      <td>28.827675</td>\n",
       "      <td>28.962699</td>\n",
       "      <td>2364</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2021-01-26</th>\n",
       "      <td>28.962699</td>\n",
       "      <td>29.232748</td>\n",
       "      <td>28.692651</td>\n",
       "      <td>28.760163</td>\n",
       "      <td>996</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2021-01-27</th>\n",
       "      <td>28.760163</td>\n",
       "      <td>29.232748</td>\n",
       "      <td>28.692651</td>\n",
       "      <td>28.895187</td>\n",
       "      <td>1292</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2021-01-28</th>\n",
       "      <td>28.827675</td>\n",
       "      <td>28.827675</td>\n",
       "      <td>28.557627</td>\n",
       "      <td>28.760163</td>\n",
       "      <td>1282</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>506 rows × 6 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                 open       high        low      close  volume  openinterest\n",
       "datetime                                                                    \n",
       "2019-01-02  33.064891  33.496709  31.954503  32.386321    1062             0\n",
       "2019-01-03  32.262944  32.941515  31.399309  31.831127     860             0\n",
       "2019-01-04  31.399309  33.558397  31.337621  33.496709    1276             0\n",
       "2019-01-07  33.496709  34.360344  33.373332  33.620085    1058             0\n",
       "2019-01-08  33.311644  34.113591  32.694762  33.743462    1001             0\n",
       "...               ...        ...        ...        ...     ...           ...\n",
       "2021-01-22  30.245430  30.312942  29.502796  29.772845    1718             0\n",
       "2021-01-25  29.570309  29.570309  28.827675  28.962699    2364             0\n",
       "2021-01-26  28.962699  29.232748  28.692651  28.760163     996             0\n",
       "2021-01-27  28.760163  29.232748  28.692651  28.895187    1292             0\n",
       "2021-01-28  28.827675  28.827675  28.557627  28.760163    1282             0\n",
       "\n",
       "[506 rows x 6 columns]"
      ]
     },
     "execution_count": 51,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data1_"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## bt.fillers.FixedSize(size)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 100,
   "metadata": {
    "collapsed": true,
    "jupyter": {
     "outputs_hidden": true
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "date 2019-01-16 open 33.00320305 volume 660.0 当前持仓量 0 当前持仓成本 0.0\n",
      "2019-01-17, BUY EXECUTED, ref:2611，Price: 32.6331, Size: 869.00, Remsize: 1131.00, Cost: 28358.1410, Stock: 600466.SH\n",
      "date 2019-01-17 open 32.63307367 volume 869.0 当前持仓量 869.0 当前持仓成本 32.63307367\n",
      "date 2019-01-18 open 31.95450314 volume 890.0 当前持仓量 869.0 当前持仓成本 32.63307367\n",
      "date 2019-01-21 open 33.06489128 volume 1292.0 当前持仓量 869.0 当前持仓成本 32.63307367\n",
      "date 2019-01-22 open 32.38632075 volume 1030.0 当前持仓量 869.0 当前持仓成本 32.63307367\n",
      "date 2019-01-23 open 32.44800898 volume 421.0 当前持仓量 869.0 当前持仓成本 32.63307367\n",
      "date 2019-01-24 open 32.50969721 volume 615.0 当前持仓量 869.0 当前持仓成本 32.63307367\n",
      "date 2019-01-25 open 32.94151482 volume 1732.0 当前持仓量 869.0 当前持仓成本 32.63307367\n",
      "date 2019-01-28 open 33.311644199999996 volume 1686.0 当前持仓量 869.0 当前持仓成本 32.63307367\n",
      "2019-01-29, SELL EXECUTED, ref:2612, Price: 33.9285, Size: -869.00, Remsize: 0.00, Cost: 28358.1410, Stock: 600466.SH\n",
      "date 2019-01-29 open 33.928526500000004 volume 2256.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-01-30 open 34.66878526 volume 1910.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-01-31 open 34.60709703 volume 1423.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-02-01 open 34.66878526 volume 1154.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-02-11 open 34.73047349 volume 1681.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-02-12 open 35.65579694 volume 1337.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-02-13 open 35.65579694 volume 1926.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-02-14 open 36.14930278 volume 1199.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-02-15 open 35.96423809 volume 1603.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-02-18 open 34.97722641 volume 1879.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-02-19 open 35.96423809 volume 2353.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-02-20 open 35.162291100000004 volume 1307.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-02-21 open 35.47073225 volume 2012.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2019-02-22, BUY EXECUTED, ref:2613，Price: 34.9155, Size: 1627.00, Remsize: 373.00, Cost: 56807.5806, Stock: 600466.SH\n",
      "date 2019-02-22 open 34.91553818 volume 1627.0 当前持仓量 1627.0 当前持仓成本 34.91553818\n",
      "date 2019-02-25 open 35.28566756 volume 4040.0 当前持仓量 1627.0 当前持仓成本 34.91553818\n",
      "date 2019-02-26 open 37.07462623 volume 4618.0 当前持仓量 1627.0 当前持仓成本 34.91553818\n",
      "2019-02-27, SELL EXECUTED, ref:2614, Price: 37.5064, Size: -1627.00, Remsize: 0.00, Cost: 56807.5806, Stock: 600466.SH\n",
      "date 2019-02-27 open 37.50644384 volume 5057.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-02-28 open 38.8635849 volume 3035.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-01 open 38.67852021 volume 2077.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-04 open 38.98696136 volume 5810.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-05 open 40.40579065 volume 6177.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-06 open 42.31812578 volume 4708.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-07 open 41.82461994 volume 3079.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-08 open 40.65254357 volume 4343.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-11 open 38.37007906 volume 2838.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-12 open 39.60384366 volume 3685.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-13 open 40.59085534 volume 6624.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-14 open 41.82461994 volume 3063.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2019-03-15, BUY EXECUTED, ref:2615，Price: 41.2077, Size: 2000.00, Remsize: 0.00, Cost: 82415.4753, Stock: 600466.SH\n",
      "date 2019-03-15 open 41.20773764 volume 4078.0 当前持仓量 2000.0 当前持仓成本 41.20773764\n",
      "2019-03-18, SELL EXECUTED, ref:2616, Price: 44.1071, Size: -2000.00, Remsize: 0.00, Cost: 82415.4753, Stock: 600466.SH\n",
      "date 2019-03-18 open 44.10708445 volume 8309.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-19 open 44.97071967 volume 5514.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-20 open 44.4155256 volume 4068.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-21 open 45.21747259 volume 5531.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-22 open 46.14279604 volume 2858.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-25 open 45.032407899999995 volume 3569.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-26 open 45.89604312 volume 2884.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-27 open 44.84734321 volume 2500.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-28 open 45.21747259 volume 5090.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-29 open 43.55189038 volume 4446.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2019-04-01, BUY EXECUTED, ref:2617，Price: 46.1428, Size: 2000.00, Remsize: 0.00, Cost: 92285.5921, Stock: 600466.SH\n",
      "date 2019-04-01 open 46.14279604 volume 6032.0 当前持仓量 2000.0 当前持仓成本 46.14279604\n",
      "date 2019-04-02 open 48.1168194 volume 3281.0 当前持仓量 2000.0 当前持仓成本 46.14279604\n",
      "2019-04-03, SELL EXECUTED, ref:2618, Price: 47.0681, Size: -2000.00, Remsize: 0.00, Cost: 92285.5921, Stock: 600466.SH\n",
      "date 2019-04-03 open 47.06811949 volume 3826.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-04-04 open 48.17850763 volume 3770.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-04-08 open 48.61032524 volume 3428.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-04-09 open 47.93175471 volume 8635.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-04-10 open 51.2012309 volume 5462.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-04-11 open 50.584348600000006 volume 4631.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-04-12 open 48.733701700000005 volume 2203.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-04-15 open 49.47396046 volume 2910.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-04-16 open 47.56162533 volume 5789.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2019-04-17, BUY EXECUTED, ref:2619，Price: 46.6363, Size: 2000.00, Remsize: 0.00, Cost: 93272.6038, Stock: 600466.SH\n",
      "date 2019-04-17 open 46.63630188 volume 4998.0 当前持仓量 2000.0 当前持仓成本 46.63630188\n",
      "date 2019-04-18 open 46.08110781 volume 3132.0 当前持仓量 2000.0 当前持仓成本 46.63630188\n",
      "date 2019-04-19 open 45.032407899999995 volume 2465.0 当前持仓量 2000.0 当前持仓成本 46.63630188\n",
      "date 2019-04-22 open 44.16877268 volume 4922.0 当前持仓量 2000.0 当前持仓成本 46.63630188\n",
      "date 2019-04-23 open 43.05838454 volume 2841.0 当前持仓量 2000.0 当前持仓成本 46.63630188\n",
      "date 2019-04-24 open 43.181761 volume 2276.0 当前持仓量 2000.0 当前持仓成本 46.63630188\n",
      "date 2019-04-25 open 42.99669631 volume 2722.0 当前持仓量 2000.0 当前持仓成本 46.63630188\n",
      "date 2019-04-26 open 42.44150224 volume 2044.0 当前持仓量 2000.0 当前持仓成本 46.63630188\n",
      "date 2019-04-29 open 43.49020215 volume 2603.0 当前持仓量 2000.0 当前持仓成本 46.63630188\n",
      "date 2019-04-30 open 43.55189038 volume 2689.0 当前持仓量 2000.0 当前持仓成本 46.63630188\n",
      "date 2019-05-06 open 41.26942587 volume 4283.0 当前持仓量 2000.0 当前持仓成本 46.63630188\n",
      "date 2019-05-07 open 39.41877897 volume 3272.0 当前持仓量 2000.0 当前持仓成本 46.63630188\n",
      "date 2019-05-08 open 39.64500182 volume 2137.0 当前持仓量 2000.0 当前持仓成本 46.63630188\n",
      "date 2019-05-09 open 40.99434548 volume 3019.0 当前持仓量 2000.0 当前持仓成本 46.63630188\n",
      "date 2019-05-10 open 39.96627412 volume 3810.0 当前持仓量 2000.0 当前持仓成本 46.63630188\n",
      "date 2019-05-13 open 40.28754642 volume 1723.0 当前持仓量 2000.0 当前持仓成本 46.63630188\n",
      "date 2019-05-14 open 39.5164929 volume 1612.0 当前持仓量 2000.0 当前持仓成本 46.63630188\n",
      "date 2019-05-15 open 39.8377652 volume 2096.0 当前持仓量 2000.0 当前持仓成本 46.63630188\n",
      "date 2019-05-16 open 40.35180088 volume 1424.0 当前持仓量 2000.0 当前持仓成本 46.63630188\n",
      "date 2019-05-17 open 40.93009102 volume 2470.0 当前持仓量 2000.0 当前持仓成本 46.63630188\n",
      "2019-05-20, SELL EXECUTED, ref:2620, Price: 39.7735, Size: -1686.00, Remsize: -314.00, Cost: 78628.8050, Stock: 600466.SH\n",
      "date 2019-05-20 open 39.77351074 volume 1686.0 当前持仓量 314.0 当前持仓成本 46.63630188\n",
      "date 2019-05-21 open 39.25947506 volume 1921.0 当前持仓量 314.0 当前持仓成本 46.63630188\n",
      "date 2019-05-22 open 39.96627412 volume 1990.0 当前持仓量 314.0 当前持仓成本 46.63630188\n",
      "date 2019-05-23 open 39.32372952 volume 1544.0 当前持仓量 314.0 当前持仓成本 46.63630188\n",
      "date 2019-05-24 open 38.61693046 volume 1794.0 当前持仓量 314.0 当前持仓成本 46.63630188\n",
      "date 2019-05-27 open 37.71736802 volume 2244.0 当前持仓量 314.0 当前持仓成本 46.63630188\n",
      "date 2019-05-28 open 38.552676 volume 1760.0 当前持仓量 314.0 当前持仓成本 46.63630188\n",
      "date 2019-05-29 open 38.35991262 volume 1912.0 当前持仓量 314.0 当前持仓成本 46.63630188\n",
      "date 2019-05-30 open 37.65311356 volume 1158.0 当前持仓量 314.0 当前持仓成本 46.63630188\n",
      "date 2019-05-31 open 38.10289478 volume 1568.0 当前持仓量 314.0 当前持仓成本 46.63630188\n",
      "date 2019-06-03 open 37.78162248 volume 1421.0 当前持仓量 314.0 当前持仓成本 46.63630188\n",
      "date 2019-06-04 open 37.71736802 volume 1777.0 当前持仓量 314.0 当前持仓成本 46.63630188\n",
      "date 2019-06-05 open 37.07482342 volume 3116.0 当前持仓量 314.0 当前持仓成本 46.63630188\n",
      "date 2019-06-06 open 37.65311356 volume 1417.0 当前持仓量 314.0 当前持仓成本 46.63630188\n",
      "date 2019-06-10 open 36.9463145 volume 3058.0 当前持仓量 314.0 当前持仓成本 46.63630188\n",
      "date 2019-06-11 open 38.48842154 volume 4038.0 当前持仓量 314.0 当前持仓成本 46.63630188\n",
      "date 2019-06-12 open 39.90201966 volume 1785.0 当前持仓量 314.0 当前持仓成本 46.63630188\n",
      "2019-06-13, SELL EXECUTED, ref:2621, Price: 40.0948, Size: -314.00, Remsize: 0.00, Cost: 14643.7988, Stock: 600466.SH\n",
      "date 2019-06-13 open 40.09478304 volume 1605.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-06-14 open 40.1590375 volume 4020.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-06-17 open 40.93009102 volume 1793.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-06-18 open 40.41605534 volume 1363.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-06-19 open 41.05859994 volume 1910.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-06-20 open 40.35180088 volume 1901.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-06-21 open 41.25136332 volume 1853.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-06-24 open 41.25136332 volume 1459.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-06-25 open 41.50838116 volume 1512.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-06-26 open 40.4803098 volume 1326.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-06-27 open 40.99434548 volume 1422.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-06-28 open 40.93009102 volume 1404.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-07-01 open 40.4803098 volume 2632.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2019-07-02, BUY EXECUTED, ref:2622，Price: 40.4803, Size: 2000.00, Remsize: 0.00, Cost: 80960.6196, Stock: 600466.SH\n",
      "date 2019-07-02 open 40.4803098 volume 2620.0 当前持仓量 2000.0 当前持仓成本 40.4803098\n",
      "date 2019-07-03 open 39.96627412 volume 3601.0 当前持仓量 2000.0 当前持仓成本 40.4803098\n",
      "date 2019-07-04 open 40.99434548 volume 3978.0 当前持仓量 2000.0 当前持仓成本 40.4803098\n",
      "date 2019-07-05 open 41.765399 volume 2579.0 当前持仓量 2000.0 当前持仓成本 40.4803098\n",
      "2019-07-08, SELL EXECUTED, ref:2623, Price: 40.9301, Size: -2000.00, Remsize: 0.00, Cost: 80960.6196, Stock: 600466.SH\n",
      "date 2019-07-08 open 40.93009102 volume 2822.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-07-09 open 39.38798398 volume 1476.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-07-10 open 39.8377652 volume 3845.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2019-07-11, BUY EXECUTED, ref:2624，Price: 38.4884, Size: 2000.00, Remsize: 0.00, Cost: 76976.8431, Stock: 600466.SH\n",
      "date 2019-07-11 open 38.48842154 volume 4787.0 当前持仓量 2000.0 当前持仓成本 38.48842154\n",
      "date 2019-07-12 open 39.64500182 volume 2275.0 当前持仓量 2000.0 当前持仓成本 38.48842154\n",
      "date 2019-07-15 open 39.58074736 volume 3680.0 当前持仓量 2000.0 当前持仓成本 38.48842154\n",
      "date 2019-07-16 open 40.4803098 volume 2541.0 当前持仓量 2000.0 当前持仓成本 38.48842154\n",
      "date 2019-07-17 open 41.444126700000005 volume 2703.0 当前持仓量 2000.0 当前持仓成本 38.48842154\n",
      "2019-07-18, SELL EXECUTED, ref:2625, Price: 41.1871, Size: -2000.00, Remsize: 0.00, Cost: 76976.8431, Stock: 600466.SH\n",
      "date 2019-07-18 open 41.18710886 volume 3357.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-07-19 open 40.60881872 volume 3478.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-07-22 open 41.89390792 volume 2564.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-07-23 open 41.70114454 volume 2857.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-07-24 open 40.93009102 volume 3005.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-07-25 open 40.54456426 volume 3082.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-07-26 open 40.03052858 volume 2685.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2019-07-29, BUY EXECUTED, ref:2626，Price: 41.2514, Size: 2000.00, Remsize: 0.00, Cost: 82502.7266, Stock: 600466.SH\n",
      "date 2019-07-29 open 41.25136332 volume 2451.0 当前持仓量 2000.0 当前持仓成本 41.25136332\n",
      "date 2019-07-30 open 40.1590375 volume 1885.0 当前持仓量 2000.0 当前持仓成本 41.25136332\n",
      "date 2019-07-31 open 40.09478304 volume 3480.0 当前持仓量 2000.0 当前持仓成本 41.25136332\n",
      "date 2019-08-01 open 39.1952206 volume 2475.0 当前持仓量 2000.0 当前持仓成本 41.25136332\n",
      "date 2019-08-02 open 37.5888591 volume 2944.0 当前持仓量 2000.0 当前持仓成本 41.25136332\n",
      "date 2019-08-05 open 37.13907788 volume 1926.0 当前持仓量 2000.0 当前持仓成本 41.25136332\n",
      "date 2019-08-06 open 36.11100652 volume 2587.0 当前持仓量 2000.0 当前持仓成本 41.25136332\n",
      "date 2019-08-07 open 37.39609572 volume 1978.0 当前持仓量 2000.0 当前持仓成本 41.25136332\n",
      "date 2019-08-08 open 37.5888591 volume 1299.0 当前持仓量 2000.0 当前持仓成本 41.25136332\n",
      "date 2019-08-09 open 37.2675868 volume 1690.0 当前持仓量 2000.0 当前持仓成本 41.25136332\n",
      "date 2019-08-12 open 36.49653328 volume 1166.0 当前持仓量 2000.0 当前持仓成本 41.25136332\n",
      "date 2019-08-13 open 36.75355112 volume 996.0 当前持仓量 2000.0 当前持仓成本 41.25136332\n",
      "date 2019-08-14 open 36.88206004 volume 966.0 当前持仓量 2000.0 当前持仓成本 41.25136332\n",
      "date 2019-08-15 open 35.6612253 volume 1165.0 当前持仓量 2000.0 当前持仓成本 41.25136332\n",
      "date 2019-08-16 open 36.6250422 volume 1412.0 当前持仓量 2000.0 当前持仓成本 41.25136332\n",
      "date 2019-08-19 open 36.56078774 volume 1936.0 当前持仓量 2000.0 当前持仓成本 41.25136332\n",
      "date 2019-08-20 open 37.910131400000004 volume 1446.0 当前持仓量 2000.0 当前持仓成本 41.25136332\n",
      "2019-08-21, SELL EXECUTED, ref:2627, Price: 37.8459, Size: -1448.00, Remsize: -552.00, Cost: 59731.9741, Stock: 600466.SH\n",
      "date 2019-08-21 open 37.84587694 volume 1448.0 当前持仓量 552.0 当前持仓成本 41.25136332\n",
      "date 2019-08-22 open 38.74543938 volume 1163.0 当前持仓量 552.0 当前持仓成本 41.25136332\n",
      "date 2019-08-23 open 39.13096614 volume 3117.0 当前持仓量 552.0 当前持仓成本 41.25136332\n",
      "date 2019-08-26 open 39.25947506 volume 1971.0 当前持仓量 552.0 当前持仓成本 41.25136332\n",
      "date 2019-08-27 open 39.32372952 volume 1953.0 当前持仓量 552.0 当前持仓成本 41.25136332\n",
      "date 2019-08-28 open 38.93820276 volume 1607.0 当前持仓量 552.0 当前持仓成本 41.25136332\n",
      "date 2019-08-29 open 39.13096614 volume 2368.0 当前持仓量 552.0 当前持仓成本 41.25136332\n",
      "date 2019-08-30 open 38.29565816 volume 2230.0 当前持仓量 552.0 当前持仓成本 41.25136332\n",
      "date 2019-09-02 open 36.68929666 volume 2373.0 当前持仓量 552.0 当前持仓成本 41.25136332\n",
      "date 2019-09-03 open 37.33184126 volume 1505.0 当前持仓量 552.0 当前持仓成本 41.25136332\n",
      "date 2019-09-04 open 36.88206004 volume 2749.0 当前持仓量 552.0 当前持仓成本 41.25136332\n",
      "date 2019-09-05 open 38.74543938 volume 2726.0 当前持仓量 552.0 当前持仓成本 41.25136332\n",
      "date 2019-09-06 open 39.1952206 volume 1786.0 当前持仓量 552.0 当前持仓成本 41.25136332\n",
      "date 2019-09-09 open 39.58074736 volume 2054.0 当前持仓量 552.0 当前持仓成本 41.25136332\n",
      "2019-09-10, SELL EXECUTED, ref:2628, Price: 39.5807, Size: -552.00, Remsize: 0.00, Cost: 22770.7526, Stock: 600466.SH\n",
      "date 2019-09-10 open 39.58074736 volume 1300.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-09-11 open 39.06671168 volume 1379.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-09-12 open 39.13096614 volume 4112.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-09-16 open 40.8015821 volume 2674.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-09-17 open 40.54456426 volume 1741.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-09-18 open 40.28754642 volume 2315.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-09-19 open 41.1228544 volume 2477.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-09-20 open 40.4803098 volume 1456.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-09-23 open 40.4803098 volume 1499.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-09-24 open 39.64500182 volume 1575.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-09-25 open 39.45223844 volume 1566.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2019-09-26, BUY EXECUTED, ref:2629，Price: 39.5807, Size: 1797.00, Remsize: 203.00, Cost: 71126.6030, Stock: 600466.SH\n",
      "date 2019-09-26 open 39.58074736 volume 1797.0 当前持仓量 1797.0 当前持仓成本 39.58074736\n",
      "date 2019-09-27 open 39.38798398 volume 1877.0 当前持仓量 1797.0 当前持仓成本 39.58074736\n",
      "date 2019-09-30 open 38.552676 volume 1200.0 当前持仓量 1797.0 当前持仓成本 39.58074736\n",
      "date 2019-10-08 open 39.13096614 volume 3249.0 当前持仓量 1797.0 当前持仓成本 39.58074736\n",
      "date 2019-10-09 open 40.22329196 volume 3859.0 当前持仓量 1797.0 当前持仓成本 39.58074736\n",
      "date 2019-10-10 open 41.57263562 volume 3732.0 当前持仓量 1797.0 当前持仓成本 39.58074736\n",
      "2019-10-11, SELL EXECUTED, ref:2630, Price: 43.0505, Size: -1797.00, Remsize: 0.00, Cost: 71126.6030, Stock: 600466.SH\n",
      "date 2019-10-11 open 43.050488200000004 volume 2498.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-10-14 open 43.11474266 volume 4972.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-10-15 open 44.46408632 volume 4407.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-10-16 open 45.74917552 volume 4333.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-10-17 open 46.2632112 volume 4711.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-10-18 open 45.9419389 volume 6712.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-10-21 open 42.407943599999996 volume 4252.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-10-22 open 42.7292159 volume 2510.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-10-23 open 42.15092576 volume 2294.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2019-10-24, BUY EXECUTED, ref:2631，Price: 41.3799, Size: 2000.00, Remsize: 0.00, Cost: 82759.7445, Stock: 600466.SH\n",
      "date 2019-10-24 open 41.37987224 volume 2135.0 当前持仓量 2000.0 当前持仓成本 41.37987224\n",
      "date 2019-10-25 open 42.27943468 volume 4224.0 当前持仓量 2000.0 当前持仓成本 41.37987224\n",
      "date 2019-10-28 open 42.47219806 volume 2998.0 当前持仓量 2000.0 当前持仓成本 41.37987224\n",
      "date 2019-10-29 open 41.765399 volume 2092.0 当前持仓量 2000.0 当前持仓成本 41.37987224\n",
      "date 2019-10-30 open 41.31561778 volume 2020.0 当前持仓量 2000.0 当前持仓成本 41.37987224\n",
      "date 2019-10-31 open 40.86583656 volume 1937.0 当前持仓量 2000.0 当前持仓成本 41.37987224\n",
      "date 2019-11-01 open 40.8015821 volume 2425.0 当前持仓量 2000.0 当前持仓成本 41.37987224\n",
      "date 2019-11-04 open 41.95816238 volume 2552.0 当前持仓量 2000.0 当前持仓成本 41.37987224\n",
      "date 2019-11-05 open 42.21518022 volume 4810.0 当前持仓量 2000.0 当前持仓成本 41.37987224\n",
      "date 2019-11-06 open 43.62877834 volume 3756.0 当前持仓量 2000.0 当前持仓成本 41.37987224\n",
      "2019-11-07, SELL EXECUTED, ref:2632, Price: 42.2152, Size: -1943.00, Remsize: -57.00, Cost: 80401.0918, Stock: 600466.SH\n",
      "date 2019-11-07 open 42.21518022 volume 1943.0 当前持仓量 57.0 当前持仓成本 41.37987224\n",
      "date 2019-11-08 open 42.66496144 volume 2025.0 当前持仓量 57.0 当前持仓成本 41.37987224\n",
      "date 2019-11-11 open 41.70114454 volume 1750.0 当前持仓量 57.0 当前持仓成本 41.37987224\n",
      "date 2019-11-12 open 41.05859994 volume 1567.0 当前持仓量 57.0 当前持仓成本 41.37987224\n",
      "date 2019-11-13 open 40.99434548 volume 1776.0 当前持仓量 57.0 当前持仓成本 41.37987224\n",
      "date 2019-11-14 open 40.41605534 volume 1248.0 当前持仓量 57.0 当前持仓成本 41.37987224\n",
      "date 2019-11-15 open 40.8015821 volume 1167.0 当前持仓量 57.0 当前持仓成本 41.37987224\n",
      "date 2019-11-18 open 40.1590375 volume 1560.0 当前持仓量 57.0 当前持仓成本 41.37987224\n",
      "date 2019-11-19 open 41.57263562 volume 1696.0 当前持仓量 57.0 当前持仓成本 41.37987224\n",
      "date 2019-11-20 open 42.60070698 volume 2259.0 当前持仓量 57.0 当前持仓成本 41.37987224\n",
      "2019-11-21, SELL EXECUTED, ref:2633, Price: 42.7935, Size: -57.00, Remsize: 0.00, Cost: 2358.6527, Stock: 600466.SH\n",
      "date 2019-11-21 open 42.79347036 volume 2059.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-11-22 open 43.17899712 volume 2225.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-11-25 open 42.85772482 volume 3066.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-11-26 open 43.56452388 volume 3271.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-11-27 open 42.47219806 volume 4678.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-11-28 open 43.6930328 volume 1961.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-11-29 open 42.92197928 volume 1316.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-12-02 open 42.66496144 volume 2120.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2019-12-03, BUY EXECUTED, ref:2634，Price: 43.6930, Size: 2000.00, Remsize: 0.00, Cost: 87386.0656, Stock: 600466.SH\n",
      "date 2019-12-03 open 43.6930328 volume 2268.0 当前持仓量 2000.0 当前持仓成本 43.6930328\n",
      "2019-12-04, SELL EXECUTED, ref:2635, Price: 44.0143, Size: -1899.00, Remsize: -101.00, Cost: 82973.0693, Stock: 600466.SH\n",
      "date 2019-12-04 open 44.0143051 volume 1899.0 当前持仓量 101.0 当前持仓成本 43.6930328\n",
      "date 2019-12-05 open 43.56452388 volume 1806.0 当前持仓量 101.0 当前持仓成本 43.6930328\n",
      "date 2019-12-06 open 42.98623374 volume 1564.0 当前持仓量 101.0 当前持仓成本 43.6930328\n",
      "date 2019-12-09 open 43.11474266 volume 3443.0 当前持仓量 101.0 当前持仓成本 43.6930328\n",
      "date 2019-12-10 open 44.27132294 volume 1742.0 当前持仓量 101.0 当前持仓成本 43.6930328\n",
      "date 2019-12-11 open 44.27132294 volume 2445.0 当前持仓量 101.0 当前持仓成本 43.6930328\n",
      "date 2019-12-12 open 44.59259524 volume 2210.0 当前持仓量 101.0 当前持仓成本 43.6930328\n",
      "date 2019-12-13 open 44.84961308 volume 2446.0 当前持仓量 101.0 当前持仓成本 43.6930328\n",
      "date 2019-12-16 open 45.10663092 volume 2348.0 当前持仓量 101.0 当前持仓成本 43.6930328\n",
      "date 2019-12-17 open 44.84961308 volume 3060.0 当前持仓量 101.0 当前持仓成本 43.6930328\n",
      "date 2019-12-18 open 45.49215768 volume 2535.0 当前持仓量 101.0 当前持仓成本 43.6930328\n",
      "date 2019-12-19 open 45.87768444 volume 2372.0 当前持仓量 101.0 当前持仓成本 43.6930328\n",
      "date 2019-12-20 open 45.6206666 volume 4081.0 当前持仓量 101.0 当前持仓成本 43.6930328\n",
      "date 2019-12-23 open 46.32746566 volume 2637.0 当前持仓量 101.0 当前持仓成本 43.6930328\n",
      "date 2019-12-24 open 45.42790322 volume 2566.0 当前持仓量 101.0 当前持仓成本 43.6930328\n",
      "date 2019-12-25 open 44.84961308 volume 1459.0 当前持仓量 101.0 当前持仓成本 43.6930328\n",
      "date 2019-12-26 open 45.17088538 volume 2782.0 当前持仓量 101.0 当前持仓成本 43.6930328\n",
      "date 2019-12-27 open 45.49215768 volume 2169.0 当前持仓量 101.0 当前持仓成本 43.6930328\n",
      "date 2019-12-30 open 45.6206666 volume 2046.0 当前持仓量 101.0 当前持仓成本 43.6930328\n",
      "date 2019-12-31 open 46.00619336 volume 3502.0 当前持仓量 101.0 当前持仓成本 43.6930328\n",
      "2020-01-02, SELL EXECUTED, ref:2636, Price: 48.0623, Size: -101.00, Remsize: 0.00, Cost: 4412.9963, Stock: 600466.SH\n",
      "date 2020-01-02 open 48.06233608 volume 5342.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-01-03 open 49.09040744 volume 3570.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-01-06 open 48.190845 volume 2771.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-01-07 open 47.48404594 volume 1846.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-01-08 open 47.48404594 volume 2848.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-01-09 open 47.99808162 volume 2836.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-01-10 open 49.21891636 volume 1710.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-01-13 open 49.02615298 volume 1699.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-01-14 open 49.1546619 volume 1626.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-01-15 open 48.06233608 volume 1889.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-01-16 open 47.99808162 volume 1095.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-01-17 open 47.80531824 volume 1108.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2020-01-20, BUY EXECUTED, ref:2637，Price: 47.0985, Size: 2000.00, Remsize: 0.00, Cost: 94197.0384, Stock: 600466.SH\n",
      "date 2020-01-20 open 47.09851918 volume 2294.0 当前持仓量 2000.0 当前持仓成本 47.09851918\n",
      "date 2020-01-21 open 46.52022904 volume 2977.0 当前持仓量 2000.0 当前持仓成本 47.09851918\n",
      "date 2020-01-22 open 45.17088538 volume 2039.0 当前持仓量 2000.0 当前持仓成本 47.09851918\n",
      "date 2020-01-23 open 45.49215768 volume 2148.0 当前持仓量 2000.0 当前持仓成本 47.09851918\n",
      "date 2020-02-03 open 39.70925628 volume 310.0 当前持仓量 2000.0 当前持仓成本 47.09851918\n",
      "date 2020-02-04 open 37.07482342 volume 3831.0 当前持仓量 2000.0 当前持仓成本 47.09851918\n",
      "date 2020-02-05 open 39.70925628 volume 2462.0 当前持仓量 2000.0 当前持仓成本 47.09851918\n",
      "date 2020-02-06 open 39.8377652 volume 2434.0 当前持仓量 2000.0 当前持仓成本 47.09851918\n",
      "date 2020-02-07 open 40.1590375 volume 2372.0 当前持仓量 2000.0 当前持仓成本 47.09851918\n",
      "date 2020-02-10 open 40.03052858 volume 2313.0 当前持仓量 2000.0 当前持仓成本 47.09851918\n",
      "date 2020-02-11 open 40.93009102 volume 4257.0 当前持仓量 2000.0 当前持仓成本 47.09851918\n",
      "date 2020-02-12 open 42.7292159 volume 2847.0 当前持仓量 2000.0 当前持仓成本 47.09851918\n",
      "date 2020-02-13 open 42.66496144 volume 4834.0 当前持仓量 2000.0 当前持仓成本 47.09851918\n",
      "2020-02-14, SELL EXECUTED, ref:2638, Price: 44.2713, Size: -2000.00, Remsize: 0.00, Cost: 94197.0384, Stock: 600466.SH\n",
      "date 2020-02-14 open 44.27132294 volume 2756.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-02-17 open 45.42790322 volume 2760.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-02-18 open 45.17088538 volume 3601.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-02-19 open 43.88579618 volume 1975.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-02-20 open 44.0143051 volume 2237.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-02-21 open 43.88579618 volume 2046.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-02-24 open 43.43601496 volume 4834.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2020-02-25, BUY EXECUTED, ref:2639，Price: 41.6369, Size: 2000.00, Remsize: 0.00, Cost: 83273.7802, Stock: 600466.SH\n",
      "date 2020-02-25 open 41.63689008 volume 3074.0 当前持仓量 2000.0 当前持仓成本 41.63689008\n",
      "date 2020-02-26 open 41.95816238 volume 3624.0 当前持仓量 2000.0 当前持仓成本 41.63689008\n",
      "date 2020-02-27 open 42.98623374 volume 3044.0 当前持仓量 2000.0 当前持仓成本 41.63689008\n",
      "date 2020-02-28 open 41.70114454 volume 2864.0 当前持仓量 2000.0 当前持仓成本 41.63689008\n",
      "date 2020-03-02 open 42.15092576 volume 5272.0 当前持仓量 2000.0 当前持仓成本 41.63689008\n",
      "date 2020-03-03 open 45.299394299999996 volume 3579.0 当前持仓量 2000.0 当前持仓成本 41.63689008\n",
      "date 2020-03-04 open 43.75728726 volume 4381.0 当前持仓量 2000.0 当前持仓成本 41.63689008\n",
      "2020-03-05, SELL EXECUTED, ref:2640, Price: 45.3636, Size: -2000.00, Remsize: 0.00, Cost: 83273.7802, Stock: 600466.SH\n",
      "date 2020-03-05 open 45.36364876 volume 2796.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-03-06 open 45.10663092 volume 2978.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-03-09 open 42.92197928 volume 3925.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-03-10 open 41.31561778 volume 2517.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-03-11 open 43.050488200000004 volume 2674.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2020-03-12, BUY EXECUTED, ref:2641，Price: 42.7935, Size: 1674.00, Remsize: 326.00, Cost: 71636.2694, Stock: 600466.SH\n",
      "date 2020-03-12 open 42.79347036 volume 1674.0 当前持仓量 1674.0 当前持仓成本 42.79347036\n",
      "date 2020-03-13 open 40.03052858 volume 2082.0 当前持仓量 1674.0 当前持仓成本 42.79347036\n",
      "date 2020-03-16 open 41.18710886 volume 2212.0 当前持仓量 1674.0 当前持仓成本 42.79347036\n",
      "date 2020-03-17 open 39.96627412 volume 1677.0 当前持仓量 1674.0 当前持仓成本 42.79347036\n",
      "date 2020-03-18 open 40.1590375 volume 2535.0 当前持仓量 1674.0 当前持仓成本 42.79347036\n",
      "date 2020-03-19 open 38.42416708 volume 2308.0 当前持仓量 1674.0 当前持仓成本 42.79347036\n",
      "date 2020-03-20 open 38.16714924 volume 1448.0 当前持仓量 1674.0 当前持仓成本 42.79347036\n",
      "date 2020-03-23 open 36.75355112 volume 1500.0 当前持仓量 1674.0 当前持仓成本 42.79347036\n",
      "date 2020-03-24 open 37.33184126 volume 1749.0 当前持仓量 1674.0 当前持仓成本 42.79347036\n",
      "date 2020-03-25 open 38.93820276 volume 2198.0 当前持仓量 1674.0 当前持仓成本 42.79347036\n",
      "date 2020-03-26 open 39.38798398 volume 1140.0 当前持仓量 1674.0 当前持仓成本 42.79347036\n",
      "date 2020-03-27 open 40.1590375 volume 1556.0 当前持仓量 1674.0 当前持仓成本 42.79347036\n",
      "date 2020-03-30 open 39.5164929 volume 1144.0 当前持仓量 1674.0 当前持仓成本 42.79347036\n",
      "2020-03-31, SELL EXECUTED, ref:2642, Price: 40.1590, Size: -1674.00, Remsize: 0.00, Cost: 71636.2694, Stock: 600466.SH\n",
      "date 2020-03-31 open 40.1590375 volume 1968.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-04-01 open 38.93820276 volume 1736.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-04-02 open 38.552676 volume 1523.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-04-03 open 39.00245722 volume 1175.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-04-07 open 39.25947506 volume 2085.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2020-04-08, BUY EXECUTED, ref:2643，Price: 39.2595, Size: 1891.00, Remsize: 109.00, Cost: 74239.6673, Stock: 600466.SH\n",
      "date 2020-04-08 open 39.25947506 volume 1891.0 当前持仓量 1891.0 当前持仓成本 39.25947506\n",
      "date 2020-04-09 open 39.96627412 volume 1264.0 当前持仓量 1891.0 当前持仓成本 39.25947506\n",
      "date 2020-04-10 open 39.77351074 volume 1305.0 当前持仓量 1891.0 当前持仓成本 39.25947506\n",
      "2020-04-13, SELL EXECUTED, ref:2644, Price: 39.4522, Size: -983.00, Remsize: -908.00, Cost: 38592.0640, Stock: 600466.SH\n",
      "date 2020-04-13 open 39.45223844 volume 983.0 当前持仓量 908.0 当前持仓成本 39.25947506\n",
      "date 2020-04-14 open 39.5164929 volume 1280.0 当前持仓量 908.0 当前持仓成本 39.25947506\n",
      "date 2020-04-15 open 40.1590375 volume 1276.0 当前持仓量 908.0 当前持仓成本 39.25947506\n",
      "date 2020-04-16 open 39.5164929 volume 1373.0 当前持仓量 908.0 当前持仓成本 39.25947506\n",
      "date 2020-04-17 open 39.90201966 volume 1920.0 当前持仓量 908.0 当前持仓成本 39.25947506\n",
      "date 2020-04-20 open 39.58074736 volume 4603.0 当前持仓量 908.0 当前持仓成本 39.25947506\n",
      "date 2020-04-21 open 37.910131400000004 volume 3693.0 当前持仓量 908.0 当前持仓成本 39.25947506\n",
      "date 2020-04-22 open 36.68929666 volume 2730.0 当前持仓量 908.0 当前持仓成本 39.25947506\n",
      "date 2020-04-23 open 37.07482342 volume 2367.0 当前持仓量 908.0 当前持仓成本 39.25947506\n",
      "date 2020-04-24 open 36.88206004 volume 1935.0 当前持仓量 908.0 当前持仓成本 39.25947506\n",
      "date 2020-04-27 open 36.11100652 volume 1506.0 当前持仓量 908.0 当前持仓成本 39.25947506\n",
      "date 2020-04-28 open 36.43227882 volume 2930.0 当前持仓量 908.0 当前持仓成本 39.25947506\n",
      "date 2020-04-29 open 35.40420746 volume 1939.0 当前持仓量 908.0 当前持仓成本 39.25947506\n",
      "date 2020-04-30 open 36.04675206 volume 4180.0 当前持仓量 908.0 当前持仓成本 39.25947506\n",
      "date 2020-05-06 open 36.6250422 volume 5815.0 当前持仓量 908.0 当前持仓成本 39.25947506\n",
      "date 2020-05-07 open 35.91824314 volume 3912.0 当前持仓量 908.0 当前持仓成本 39.25947506\n",
      "date 2020-05-08 open 35.6612253 volume 2744.0 当前持仓量 908.0 当前持仓成本 39.25947506\n",
      "date 2020-05-11 open 36.36802436 volume 2749.0 当前持仓量 908.0 当前持仓成本 39.25947506\n",
      "2020-05-12, SELL EXECUTED, ref:2645, Price: 35.9825, Size: -908.00, Remsize: 0.00, Cost: 35647.6034, Stock: 600466.SH\n",
      "date 2020-05-12 open 35.9824976 volume 3026.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2020-05-13, BUY EXECUTED, ref:2646，Price: 35.2114, Size: 1931.00, Remsize: 69.00, Cost: 67993.2985, Stock: 600466.SH\n",
      "date 2020-05-13 open 35.21144408 volume 1931.0 当前持仓量 1931.0 当前持仓成本 35.21144408\n",
      "date 2020-05-14 open 35.018680700000004 volume 1577.0 当前持仓量 1931.0 当前持仓成本 35.21144408\n",
      "date 2020-05-15 open 34.6974084 volume 1212.0 当前持仓量 1931.0 当前持仓成本 35.21144408\n",
      "date 2020-05-18 open 34.89017178 volume 1696.0 当前持仓量 1931.0 当前持仓成本 35.21144408\n",
      "date 2020-05-19 open 34.76166286 volume 2818.0 当前持仓量 1931.0 当前持仓成本 35.21144408\n",
      "date 2020-05-20 open 33.733591499999996 volume 3053.0 当前持仓量 1931.0 当前持仓成本 35.21144408\n",
      "date 2020-05-21 open 33.66933704 volume 2194.0 当前持仓量 1931.0 当前持仓成本 35.21144408\n",
      "date 2020-05-22 open 32.89828352 volume 1739.0 当前持仓量 1931.0 当前持仓成本 35.21144408\n",
      "date 2020-05-25 open 32.4485023 volume 1575.0 当前持仓量 1931.0 当前持仓成本 35.21144408\n",
      "date 2020-05-26 open 33.02679244 volume 1222.0 当前持仓量 1931.0 当前持仓成本 35.21144408\n",
      "date 2020-05-27 open 32.89828352 volume 1736.0 当前持仓量 1931.0 当前持仓成本 35.21144408\n",
      "date 2020-05-28 open 33.15530136 volume 1498.0 当前持仓量 1931.0 当前持仓成本 35.21144408\n",
      "date 2020-05-29 open 33.21955582 volume 1554.0 当前持仓量 1931.0 当前持仓成本 35.21144408\n",
      "date 2020-06-01 open 32.83402906 volume 3244.0 当前持仓量 1931.0 当前持仓成本 35.21144408\n",
      "date 2020-06-02 open 33.28381028 volume 4819.0 当前持仓量 1931.0 当前持仓成本 35.21144408\n",
      "2020-06-03, SELL EXECUTED, ref:2647, Price: 34.3119, Size: -1931.00, Remsize: 0.00, Cost: 67993.2985, Stock: 600466.SH\n",
      "date 2020-06-03 open 34.31188164 volume 4069.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-06-04 open 33.86210042 volume 2277.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-06-05 open 33.66933704 volume 1800.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-06-08 open 33.54082812 volume 2737.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-06-09 open 33.86210042 volume 2284.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-06-10 open 33.60508258 volume 1886.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-06-11 open 33.21955582 volume 2189.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2020-06-12, BUY EXECUTED, ref:2648，Price: 32.2557, Size: 1736.00, Remsize: 264.00, Cost: 55995.9628, Stock: 600466.SH\n",
      "date 2020-06-12 open 32.25573892 volume 1736.0 当前持仓量 1736.0 当前持仓成本 32.25573892\n",
      "date 2020-06-15 open 32.64126568 volume 1543.0 当前持仓量 1736.0 当前持仓成本 32.25573892\n",
      "date 2020-06-16 open 32.769774600000005 volume 1775.0 当前持仓量 1736.0 当前持仓成本 32.25573892\n",
      "date 2020-06-17 open 32.96253798 volume 1709.0 当前持仓量 1736.0 当前持仓成本 32.25573892\n",
      "date 2020-06-18 open 32.83402906 volume 7936.0 当前持仓量 1736.0 当前持仓成本 32.25573892\n",
      "date 2020-06-19 open 34.76166286 volume 3858.0 当前持仓量 1736.0 当前持仓成本 32.25573892\n",
      "2020-06-22, SELL EXECUTED, ref:2649, Price: 34.6332, Size: -1736.00, Remsize: 0.00, Cost: 55995.9628, Stock: 600466.SH\n",
      "date 2020-06-22 open 34.63315394 volume 2504.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-06-23 open 35.018680700000004 volume 6101.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-06-24 open 33.79784596 volume 5632.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-06-29 open 35.21144408 volume 3646.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-06-30 open 34.56889948 volume 2848.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-07-01 open 34.89017178 volume 8046.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-07-02 open 36.75355112 volume 8577.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-07-03 open 38.68118492 volume 7230.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-07-06 open 39.29205384 volume 8118.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-07-07 open 41.519953799999996 volume 7905.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-07-08 open 39.832150799999994 volume 5651.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-07-09 open 40.23722352 volume 7401.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-07-10 open 40.30473564 volume 4887.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-07-13 open 39.35956596 volume 4641.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-07-14 open 39.89966292 volume 4713.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-07-15 open 39.69712656 volume 4891.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2020-07-16, BUY EXECUTED, ref:2650，Price: 38.7520, Size: 2000.00, Remsize: 0.00, Cost: 77503.9138, Stock: 600466.SH\n",
      "date 2020-07-16 open 38.75195688 volume 3735.0 当前持仓量 2000.0 当前持仓成本 38.75195688\n",
      "date 2020-07-17 open 37.60425084 volume 3094.0 当前持仓量 2000.0 当前持仓成本 38.75195688\n",
      "date 2020-07-20 open 37.26669024 volume 3190.0 当前持仓量 2000.0 当前持仓成本 38.75195688\n",
      "date 2020-07-21 open 38.54942052 volume 2395.0 当前持仓量 2000.0 当前持仓成本 38.75195688\n",
      "date 2020-07-22 open 38.21185992 volume 2342.0 当前持仓量 2000.0 当前持仓成本 38.75195688\n",
      "date 2020-07-23 open 37.8067872 volume 2665.0 当前持仓量 2000.0 当前持仓成本 38.75195688\n",
      "date 2020-07-24 open 37.33420236 volume 2875.0 当前持仓量 2000.0 当前持仓成本 38.75195688\n",
      "date 2020-07-27 open 36.456544799999996 volume 1902.0 当前持仓量 2000.0 当前持仓成本 38.75195688\n",
      "date 2020-07-28 open 35.71391148 volume 1472.0 当前持仓量 2000.0 当前持仓成本 38.75195688\n",
      "date 2020-07-29 open 35.84893572 volume 2811.0 当前持仓量 2000.0 当前持仓成本 38.75195688\n",
      "date 2020-07-30 open 36.32152056 volume 1767.0 当前持仓量 2000.0 当前持仓成本 38.75195688\n",
      "date 2020-07-31 open 35.84893572 volume 2407.0 当前持仓量 2000.0 当前持仓成本 38.75195688\n",
      "date 2020-08-03 open 36.38903268 volume 2828.0 当前持仓量 2000.0 当前持仓成本 38.75195688\n",
      "date 2020-08-04 open 36.99664176 volume 2650.0 当前持仓量 2000.0 当前持仓成本 38.75195688\n",
      "date 2020-08-05 open 36.92912964 volume 2373.0 当前持仓量 2000.0 当前持仓成本 38.75195688\n",
      "2020-08-06, SELL EXECUTED, ref:2651, Price: 36.4565, Size: -1661.00, Remsize: -339.00, Cost: 64367.0004, Stock: 600466.SH\n",
      "date 2020-08-06 open 36.456544799999996 volume 1661.0 当前持仓量 339.0 当前持仓成本 38.75195688\n",
      "date 2020-08-07 open 36.18649632 volume 2560.0 当前持仓量 339.0 当前持仓成本 38.75195688\n",
      "date 2020-08-10 open 35.64639936 volume 2836.0 当前持仓量 339.0 当前持仓成本 38.75195688\n",
      "date 2020-08-11 open 36.456544799999996 volume 2837.0 当前持仓量 339.0 当前持仓成本 38.75195688\n",
      "date 2020-08-12 open 35.781423600000004 volume 2212.0 当前持仓量 339.0 当前持仓成本 38.75195688\n",
      "date 2020-08-13 open 35.98395996 volume 1535.0 当前持仓量 339.0 当前持仓成本 38.75195688\n",
      "date 2020-08-14 open 36.05147208 volume 2583.0 当前持仓量 339.0 当前持仓成本 38.75195688\n",
      "date 2020-08-17 open 36.99664176 volume 3992.0 当前持仓量 339.0 当前持仓成本 38.75195688\n",
      "2020-08-18, SELL EXECUTED, ref:2652, Price: 37.6718, Size: -339.00, Remsize: 0.00, Cost: 13136.9134, Stock: 600466.SH\n",
      "date 2020-08-18 open 37.67176296 volume 2847.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-08-19 open 36.99664176 volume 2167.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-08-20 open 36.456544799999996 volume 1346.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-08-21 open 36.59156904 volume 1248.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-08-24 open 36.65908116 volume 1731.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-08-25 open 36.65908116 volume 1498.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2020-08-26, BUY EXECUTED, ref:2653，Price: 36.3215, Size: 1898.00, Remsize: 102.00, Cost: 68938.2460, Stock: 600466.SH\n",
      "date 2020-08-26 open 36.32152056 volume 1898.0 当前持仓量 1898.0 当前持仓成本 36.32152056\n",
      "date 2020-08-27 open 35.51137512 volume 1338.0 当前持仓量 1898.0 当前持仓成本 36.32152056\n",
      "date 2020-08-28 open 35.781423600000004 volume 2201.0 当前持仓量 1898.0 当前持仓成本 36.32152056\n",
      "date 2020-08-31 open 36.7941054 volume 3938.0 当前持仓量 1898.0 当前持仓成本 36.32152056\n",
      "date 2020-09-01 open 37.131665999999996 volume 1440.0 当前持仓量 1898.0 当前持仓成本 36.32152056\n",
      "date 2020-09-02 open 36.99664176 volume 1555.0 当前持仓量 1898.0 当前持仓成本 36.32152056\n",
      "2020-09-03, SELL EXECUTED, ref:2654, Price: 36.8616, Size: -1655.00, Remsize: -243.00, Cost: 60112.1165, Stock: 600466.SH\n",
      "date 2020-09-03 open 36.86161752 volume 1655.0 当前持仓量 243.0 当前持仓成本 36.32152056\n",
      "date 2020-09-04 open 35.91644784 volume 1600.0 当前持仓量 243.0 当前持仓成本 36.32152056\n",
      "date 2020-09-07 open 36.05147208 volume 2007.0 当前持仓量 243.0 当前持仓成本 36.32152056\n",
      "date 2020-09-08 open 35.781423600000004 volume 1493.0 当前持仓量 243.0 当前持仓成本 36.32152056\n",
      "date 2020-09-09 open 35.71391148 volume 2321.0 当前持仓量 243.0 当前持仓成本 36.32152056\n",
      "date 2020-09-10 open 36.456544799999996 volume 4996.0 当前持仓量 243.0 当前持仓成本 36.32152056\n",
      "date 2020-09-11 open 36.52405692 volume 2524.0 当前持仓量 243.0 当前持仓成本 36.32152056\n",
      "date 2020-09-14 open 36.38903268 volume 1938.0 当前持仓量 243.0 当前持仓成本 36.32152056\n",
      "date 2020-09-15 open 36.1189842 volume 1581.0 当前持仓量 243.0 当前持仓成本 36.32152056\n",
      "2020-09-16, SELL EXECUTED, ref:2655, Price: 36.3890, Size: -243.00, Remsize: 0.00, Cost: 8826.1295, Stock: 600466.SH\n",
      "date 2020-09-16 open 36.38903268 volume 6242.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-09-17 open 37.60425084 volume 3398.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-09-18 open 36.86161752 volume 5797.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-09-21 open 38.34688416 volume 3502.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-09-22 open 37.53673872 volume 2938.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-09-23 open 37.33420236 volume 2395.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-09-24 open 36.59156904 volume 2063.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-09-25 open 35.98395996 volume 3552.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2020-09-28, BUY EXECUTED, ref:2656，Price: 34.6337, Size: 2000.00, Remsize: 0.00, Cost: 69267.4351, Stock: 600466.SH\n",
      "date 2020-09-28 open 34.63371756 volume 2618.0 当前持仓量 2000.0 当前持仓成本 34.63371756\n",
      "date 2020-09-29 open 35.03879028 volume 2125.0 当前持仓量 2000.0 当前持仓成本 34.63371756\n",
      "date 2020-09-30 open 34.431181200000005 volume 1862.0 当前持仓量 2000.0 当前持仓成本 34.63371756\n",
      "date 2020-10-09 open 34.29615696 volume 1974.0 当前持仓量 2000.0 当前持仓成本 34.63371756\n",
      "date 2020-10-12 open 34.36366908 volume 3018.0 当前持仓量 2000.0 当前持仓成本 34.63371756\n",
      "date 2020-10-13 open 35.443863 volume 1575.0 当前持仓量 2000.0 当前持仓成本 34.63371756\n",
      "date 2020-10-14 open 34.90376604 volume 1711.0 当前持仓量 2000.0 当前持仓成本 34.63371756\n",
      "date 2020-10-15 open 34.70122968 volume 1337.0 当前持仓量 2000.0 当前持仓成本 34.63371756\n",
      "2020-10-16, SELL EXECUTED, ref:2657, Price: 34.4987, Size: -1502.00, Remsize: -498.00, Cost: 52019.8438, Stock: 600466.SH\n",
      "date 2020-10-16 open 34.49869332 volume 1502.0 当前持仓量 498.0 当前持仓成本 34.63371756\n",
      "date 2020-10-19 open 34.83625392 volume 2197.0 当前持仓量 498.0 当前持仓成本 34.63371756\n",
      "date 2020-10-20 open 34.49869332 volume 1579.0 当前持仓量 498.0 当前持仓成本 34.63371756\n",
      "date 2020-10-21 open 34.29615696 volume 1303.0 当前持仓量 498.0 当前持仓成本 34.63371756\n",
      "date 2020-10-22 open 34.16113272 volume 1428.0 当前持仓量 498.0 当前持仓成本 34.63371756\n",
      "date 2020-10-23 open 34.49869332 volume 1241.0 当前持仓量 498.0 当前持仓成本 34.63371756\n",
      "date 2020-10-26 open 34.431181200000005 volume 1286.0 当前持仓量 498.0 当前持仓成本 34.63371756\n",
      "date 2020-10-27 open 34.0936206 volume 1612.0 当前持仓量 498.0 当前持仓成本 34.63371756\n",
      "date 2020-10-28 open 33.75606 volume 1191.0 当前持仓量 498.0 当前持仓成本 34.63371756\n",
      "date 2020-10-29 open 33.4184994 volume 1140.0 当前持仓量 498.0 当前持仓成本 34.63371756\n",
      "date 2020-10-30 open 33.62103576 volume 1415.0 当前持仓量 498.0 当前持仓成本 34.63371756\n",
      "date 2020-11-02 open 33.62103576 volume 2669.0 当前持仓量 498.0 当前持仓成本 34.63371756\n",
      "date 2020-11-03 open 34.02610848 volume 1709.0 当前持仓量 498.0 当前持仓成本 34.63371756\n",
      "date 2020-11-04 open 34.0936206 volume 1184.0 当前持仓量 498.0 当前持仓成本 34.63371756\n",
      "date 2020-11-05 open 33.82357212 volume 1589.0 当前持仓量 498.0 当前持仓成本 34.63371756\n",
      "date 2020-11-06 open 34.0936206 volume 1646.0 当前持仓量 498.0 当前持仓成本 34.63371756\n",
      "2020-11-09, SELL EXECUTED, ref:2658, Price: 34.2286, Size: -498.00, Remsize: 0.00, Cost: 17247.5913, Stock: 600466.SH\n",
      "date 2020-11-09 open 34.22864484 volume 2359.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-10 open 34.70122968 volume 2034.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-11 open 34.0936206 volume 2664.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-12 open 34.70122968 volume 1867.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-13 open 34.36366908 volume 2782.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-16 open 33.62103576 volume 1711.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-17 open 34.22864484 volume 4125.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-18 open 35.17381452 volume 2563.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-19 open 34.90376604 volume 1963.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-20 open 34.63371756 volume 1400.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-23 open 34.70122968 volume 2452.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-24 open 35.03879028 volume 1518.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-25 open 34.90376604 volume 1522.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-26 open 34.63371756 volume 1301.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-27 open 34.63371756 volume 1698.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-30 open 35.24132664 volume 4681.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2020-12-01, BUY EXECUTED, ref:2659，Price: 34.8363, Size: 2000.00, Remsize: 0.00, Cost: 69672.5078, Stock: 600466.SH\n",
      "date 2020-12-01 open 34.83625392 volume 2529.0 当前持仓量 2000.0 当前持仓成本 34.83625392\n",
      "2020-12-02, SELL EXECUTED, ref:2660, Price: 35.1063, Size: -2000.00, Remsize: 0.00, Cost: 69672.5078, Stock: 600466.SH\n",
      "date 2020-12-02 open 35.1063024 volume 2646.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-12-03 open 35.1063024 volume 2440.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-12-04 open 34.768741799999994 volume 2625.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2020-12-07, BUY EXECUTED, ref:2661，Price: 34.2962, Size: 2000.00, Remsize: 0.00, Cost: 68592.3139, Stock: 600466.SH\n",
      "date 2020-12-07 open 34.29615696 volume 2362.0 当前持仓量 2000.0 当前持仓成本 34.29615696\n",
      "date 2020-12-08 open 33.95859636 volume 1214.0 当前持仓量 2000.0 当前持仓成本 34.29615696\n",
      "date 2020-12-09 open 33.95859636 volume 1565.0 当前持仓量 2000.0 当前持仓成本 34.29615696\n",
      "date 2020-12-10 open 33.55352364 volume 1296.0 当前持仓量 2000.0 当前持仓成本 34.29615696\n",
      "date 2020-12-11 open 33.48601152 volume 1828.0 当前持仓量 2000.0 当前持仓成本 34.29615696\n",
      "date 2020-12-14 open 33.21596304 volume 1315.0 当前持仓量 2000.0 当前持仓成本 34.29615696\n",
      "date 2020-12-15 open 33.35098728 volume 1493.0 当前持仓量 2000.0 当前持仓成本 34.29615696\n",
      "date 2020-12-16 open 33.080938800000006 volume 1076.0 当前持仓量 2000.0 当前持仓成本 34.29615696\n",
      "date 2020-12-17 open 32.7433782 volume 1487.0 当前持仓量 2000.0 当前持仓成本 34.29615696\n",
      "date 2020-12-18 open 32.87840244 volume 1266.0 当前持仓量 2000.0 当前持仓成本 34.29615696\n",
      "date 2020-12-21 open 32.54084184 volume 1478.0 当前持仓量 2000.0 当前持仓成本 34.29615696\n",
      "date 2020-12-22 open 32.47332972 volume 1787.0 当前持仓量 2000.0 当前持仓成本 34.29615696\n",
      "date 2020-12-23 open 32.00074488 volume 1326.0 当前持仓量 2000.0 当前持仓成本 34.29615696\n",
      "date 2020-12-24 open 32.068257 volume 1817.0 当前持仓量 2000.0 当前持仓成本 34.29615696\n",
      "date 2020-12-25 open 31.12308732 volume 2496.0 当前持仓量 2000.0 当前持仓成本 34.29615696\n",
      "date 2020-12-28 open 31.25811156 volume 1956.0 当前持仓量 2000.0 当前持仓成本 34.29615696\n",
      "date 2020-12-29 open 31.12308732 volume 4017.0 当前持仓量 2000.0 当前持仓成本 34.29615696\n",
      "date 2020-12-30 open 31.46064792 volume 2559.0 当前持仓量 2000.0 当前持仓成本 34.29615696\n",
      "date 2020-12-31 open 31.25811156 volume 2026.0 当前持仓量 2000.0 当前持仓成本 34.29615696\n",
      "date 2021-01-04 open 31.19059944 volume 3688.0 当前持仓量 2000.0 当前持仓成本 34.29615696\n",
      "date 2021-01-05 open 29.90786916 volume 2510.0 当前持仓量 2000.0 当前持仓成本 34.29615696\n",
      "date 2021-01-06 open 30.0428934 volume 1625.0 当前持仓量 2000.0 当前持仓成本 34.29615696\n",
      "date 2021-01-07 open 30.0428934 volume 3147.0 当前持仓量 2000.0 当前持仓成本 34.29615696\n",
      "date 2021-01-08 open 29.705332799999997 volume 1449.0 当前持仓量 2000.0 当前持仓成本 34.29615696\n",
      "date 2021-01-11 open 29.97538128 volume 2552.0 当前持仓量 2000.0 当前持仓成本 34.29615696\n",
      "date 2021-01-12 open 29.63782068 volume 1209.0 当前持仓量 2000.0 当前持仓成本 34.29615696\n",
      "date 2021-01-13 open 29.57030856 volume 2069.0 当前持仓量 2000.0 当前持仓成本 34.29615696\n",
      "date 2021-01-14 open 29.84035704 volume 2466.0 当前持仓量 2000.0 当前持仓成本 34.29615696\n",
      "date 2021-01-15 open 30.380453999999997 volume 2073.0 当前持仓量 2000.0 当前持仓成本 34.29615696\n",
      "2021-01-18, SELL EXECUTED, ref:2662, Price: 30.3805, Size: -2000.00, Remsize: 0.00, Cost: 68592.3139, Stock: 600466.SH\n",
      "date 2021-01-18 open 30.380453999999997 volume 2287.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2021-01-19 open 30.380453999999997 volume 3960.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2021-01-20 open 31.055575199999996 volume 2158.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2021-01-21 open 30.51547824 volume 1793.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2021-01-22 open 30.24542976 volume 1718.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2021-01-25 open 29.57030856 volume 2364.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2021-01-26, BUY EXECUTED, ref:2663，Price: 28.9627, Size: 996.00, Remsize: 1004.00, Cost: 28846.8487, Stock: 600466.SH\n",
      "date 2021-01-26 open 28.96269948 volume 996.0 当前持仓量 996.0 当前持仓成本 28.96269948\n",
      "date 2021-01-27 open 28.76016312 volume 1292.0 当前持仓量 996.0 当前持仓成本 28.96269948\n",
      "date 2021-01-28 open 28.82767524 volume 1282.0 当前持仓量 996.0 当前持仓成本 28.96269948\n"
     ]
    }
   ],
   "source": [
    "class TestStrategy(bt.Strategy):\n",
    "  \n",
    "    params=(('period1',5),\n",
    "            ('period2',10),)   #全局设定均线周期\n",
    "    \n",
    "    def log(self, txt, dt=None):\n",
    "        ''' Logging function fot this strategy'''\n",
    "        dt = dt or self.datas[0].datetime.date(0)\n",
    "        print('%s, %s' % (dt.isoformat(), txt))\n",
    "    \n",
    "    def __init__(self):\n",
    "        #计算均线\n",
    "        self.ma1 = bt.indicators.SMA(self.data0, period=self.p.period1)\n",
    "        self.ma2 = bt.indicators.SMA(self.data0, period=self.p.period2)\n",
    "        #计算2条均线交叉信号：ma2 上穿 ma1 时，取值为 +1； ma2 下穿 ma1 时，取值为 -1\n",
    "        self.crossover = bt.indicators.CrossOver(self.ma2, self.ma1) \n",
    "        # 初始化订单\n",
    "        self.order = None\n",
    "        \n",
    "    def next(self):\n",
    "         # 打印日志\n",
    "       \n",
    "        print('date', self.datas[0].datetime.date(0),\n",
    "              'open', self.data0.open[0],\n",
    "              'volume', self.data0.volume[0],\n",
    "              '当前持仓量', self.broker.getposition(self.data).size,\n",
    "              '当前持仓成本', self.broker.getposition(self.data).price)\n",
    "    \n",
    "        # 取消之前未执行的订单\n",
    "        if self.order:  \n",
    "            self.cancel(self.order)  \n",
    "        \n",
    "        # 检查是否有持仓\n",
    "        if not self.position:  \n",
    "            # 10日均线上穿5日均线，买入\n",
    "            if self.crossover > 0:             \n",
    "                self.order = self.buy(size=2000) # 以下一日开盘价买入100股\n",
    "        # # 10日均线下穿5日均线，卖出\n",
    "        elif self.crossover < 0:            \n",
    "            self.order = self.close() # 平仓，以下一日开盘价卖出\n",
    "            \n",
    "    \n",
    "    def notify_order(self, order):\n",
    "        # 未被处理的订单\n",
    "        if order.status in [order.Created, order.Submitted, order.Accepted, order.Canceled, order.Margin]:\n",
    "            return\n",
    "        # 已被处理的订单\n",
    "        if order.status in [order.Partial, order.Completed]:\n",
    "            if order.isbuy():\n",
    "                self.log(\n",
    "                    'BUY EXECUTED, ref:%.0f，Price: %.4f, Size: %.2f, Remsize: %.2f, Cost: %.4f, Stock: %s' %\n",
    "                    (order.ref,\n",
    "                     order.executed.price,\n",
    "                     order.executed.size,\n",
    "                     order.executed.remsize, # 剩余 数量\n",
    "                     order.executed.value,\n",
    "                     order.data._name))\n",
    "            else:  # Sell\n",
    "                self.log('SELL EXECUTED, ref:%.0f, Price: %.4f, Size: %.2f, Remsize: %.2f, Cost: %.4f, Stock: %s' %\n",
    "                        (order.ref,\n",
    "                        order.executed.price,\n",
    "                         order.executed.size,\n",
    "                         order.executed.remsize, # 剩余 数量\n",
    "                        order.executed.value,\n",
    "                        order.data._name))\n",
    "                \n",
    "# 实例化大脑\n",
    "cerebro4 = bt.Cerebro()\n",
    "# 设置初始资金\n",
    "cerebro4.broker.set_cash(1000000)\n",
    "# 设置成交量限制\n",
    "cerebro4.broker.set_filler(bt.broker.fillers.FixedSize(size=3000))\n",
    "# cerebro6.broker.set_filler(bt.broker.fillers.BarPointPerc(minmov=0.1, perc=0.5))\n",
    "# 加载数据\n",
    "datafeed1 = bt.feeds.PandasData(dataname=data1_, fromdate=datetime.datetime(2019,1,2), todate=datetime.datetime(2021,1,28))\n",
    "cerebro4.adddata(datafeed1, name='600466.SH')\n",
    "# 添加策略\n",
    "cerebro4.addstrategy(TestStrategy)            \n",
    "# 启动回测\n",
    "result = cerebro4.run()  "
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## bt.broker.fillers.FixedBarPerc(perc)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 101,
   "metadata": {
    "collapsed": true,
    "jupyter": {
     "outputs_hidden": true
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "date 2019-01-16 open 33.00320305 volume 660.0 当前持仓量 0 当前持仓成本 0.0\n",
      "2019-01-17, BUY EXECUTED, ref:2664，Price: 32.6331, Size: 434.00, Remsize: 1566.00, Cost: 14162.7540, Stock: 600466.SH\n",
      "date 2019-01-17 open 32.63307367 volume 869.0 当前持仓量 434.0 当前持仓成本 32.63307367\n",
      "date 2019-01-18 open 31.95450314 volume 890.0 当前持仓量 434.0 当前持仓成本 32.63307367\n",
      "date 2019-01-21 open 33.06489128 volume 1292.0 当前持仓量 434.0 当前持仓成本 32.63307367\n",
      "date 2019-01-22 open 32.38632075 volume 1030.0 当前持仓量 434.0 当前持仓成本 32.63307367\n",
      "date 2019-01-23 open 32.44800898 volume 421.0 当前持仓量 434.0 当前持仓成本 32.63307367\n",
      "date 2019-01-24 open 32.50969721 volume 615.0 当前持仓量 434.0 当前持仓成本 32.63307367\n",
      "date 2019-01-25 open 32.94151482 volume 1732.0 当前持仓量 434.0 当前持仓成本 32.63307367\n",
      "date 2019-01-28 open 33.311644199999996 volume 1686.0 当前持仓量 434.0 当前持仓成本 32.63307367\n",
      "2019-01-29, SELL EXECUTED, ref:2665, Price: 33.9285, Size: -434.00, Remsize: 0.00, Cost: 14162.7540, Stock: 600466.SH\n",
      "date 2019-01-29 open 33.928526500000004 volume 2256.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-01-30 open 34.66878526 volume 1910.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-01-31 open 34.60709703 volume 1423.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-02-01 open 34.66878526 volume 1154.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-02-11 open 34.73047349 volume 1681.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-02-12 open 35.65579694 volume 1337.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-02-13 open 35.65579694 volume 1926.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-02-14 open 36.14930278 volume 1199.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-02-15 open 35.96423809 volume 1603.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-02-18 open 34.97722641 volume 1879.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-02-19 open 35.96423809 volume 2353.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-02-20 open 35.162291100000004 volume 1307.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-02-21 open 35.47073225 volume 2012.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2019-02-22, BUY EXECUTED, ref:2666，Price: 34.9155, Size: 813.00, Remsize: 1187.00, Cost: 28386.3325, Stock: 600466.SH\n",
      "date 2019-02-22 open 34.91553818 volume 1627.0 当前持仓量 813.0 当前持仓成本 34.91553818\n",
      "date 2019-02-25 open 35.28566756 volume 4040.0 当前持仓量 813.0 当前持仓成本 34.91553818\n",
      "date 2019-02-26 open 37.07462623 volume 4618.0 当前持仓量 813.0 当前持仓成本 34.91553818\n",
      "2019-02-27, SELL EXECUTED, ref:2667, Price: 37.5064, Size: -813.00, Remsize: 0.00, Cost: 28386.3325, Stock: 600466.SH\n",
      "date 2019-02-27 open 37.50644384 volume 5057.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-02-28 open 38.8635849 volume 3035.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-01 open 38.67852021 volume 2077.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-04 open 38.98696136 volume 5810.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-05 open 40.40579065 volume 6177.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-06 open 42.31812578 volume 4708.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-07 open 41.82461994 volume 3079.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-08 open 40.65254357 volume 4343.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-11 open 38.37007906 volume 2838.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-12 open 39.60384366 volume 3685.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-13 open 40.59085534 volume 6624.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-14 open 41.82461994 volume 3063.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2019-03-15, BUY EXECUTED, ref:2668，Price: 41.2077, Size: 2000.00, Remsize: 0.00, Cost: 82415.4753, Stock: 600466.SH\n",
      "date 2019-03-15 open 41.20773764 volume 4078.0 当前持仓量 2000.0 当前持仓成本 41.20773764\n",
      "2019-03-18, SELL EXECUTED, ref:2669, Price: 44.1071, Size: -2000.00, Remsize: 0.00, Cost: 82415.4753, Stock: 600466.SH\n",
      "date 2019-03-18 open 44.10708445 volume 8309.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-19 open 44.97071967 volume 5514.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-20 open 44.4155256 volume 4068.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-21 open 45.21747259 volume 5531.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-22 open 46.14279604 volume 2858.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-25 open 45.032407899999995 volume 3569.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-26 open 45.89604312 volume 2884.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-27 open 44.84734321 volume 2500.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-28 open 45.21747259 volume 5090.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-29 open 43.55189038 volume 4446.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2019-04-01, BUY EXECUTED, ref:2670，Price: 46.1428, Size: 2000.00, Remsize: 0.00, Cost: 92285.5921, Stock: 600466.SH\n",
      "date 2019-04-01 open 46.14279604 volume 6032.0 当前持仓量 2000.0 当前持仓成本 46.14279604\n",
      "date 2019-04-02 open 48.1168194 volume 3281.0 当前持仓量 2000.0 当前持仓成本 46.14279604\n",
      "2019-04-03, SELL EXECUTED, ref:2671, Price: 47.0681, Size: -1913.00, Remsize: -87.00, Cost: 88271.1688, Stock: 600466.SH\n",
      "date 2019-04-03 open 47.06811949 volume 3826.0 当前持仓量 87.0 当前持仓成本 46.14279604\n",
      "date 2019-04-04 open 48.17850763 volume 3770.0 当前持仓量 87.0 当前持仓成本 46.14279604\n",
      "date 2019-04-08 open 48.61032524 volume 3428.0 当前持仓量 87.0 当前持仓成本 46.14279604\n",
      "date 2019-04-09 open 47.93175471 volume 8635.0 当前持仓量 87.0 当前持仓成本 46.14279604\n",
      "date 2019-04-10 open 51.2012309 volume 5462.0 当前持仓量 87.0 当前持仓成本 46.14279604\n",
      "date 2019-04-11 open 50.584348600000006 volume 4631.0 当前持仓量 87.0 当前持仓成本 46.14279604\n",
      "date 2019-04-12 open 48.733701700000005 volume 2203.0 当前持仓量 87.0 当前持仓成本 46.14279604\n",
      "date 2019-04-15 open 49.47396046 volume 2910.0 当前持仓量 87.0 当前持仓成本 46.14279604\n",
      "date 2019-04-16 open 47.56162533 volume 5789.0 当前持仓量 87.0 当前持仓成本 46.14279604\n",
      "date 2019-04-17 open 46.63630188 volume 4998.0 当前持仓量 87.0 当前持仓成本 46.14279604\n",
      "date 2019-04-18 open 46.08110781 volume 3132.0 当前持仓量 87.0 当前持仓成本 46.14279604\n",
      "date 2019-04-19 open 45.032407899999995 volume 2465.0 当前持仓量 87.0 当前持仓成本 46.14279604\n",
      "date 2019-04-22 open 44.16877268 volume 4922.0 当前持仓量 87.0 当前持仓成本 46.14279604\n",
      "date 2019-04-23 open 43.05838454 volume 2841.0 当前持仓量 87.0 当前持仓成本 46.14279604\n",
      "date 2019-04-24 open 43.181761 volume 2276.0 当前持仓量 87.0 当前持仓成本 46.14279604\n",
      "date 2019-04-25 open 42.99669631 volume 2722.0 当前持仓量 87.0 当前持仓成本 46.14279604\n",
      "date 2019-04-26 open 42.44150224 volume 2044.0 当前持仓量 87.0 当前持仓成本 46.14279604\n",
      "date 2019-04-29 open 43.49020215 volume 2603.0 当前持仓量 87.0 当前持仓成本 46.14279604\n",
      "date 2019-04-30 open 43.55189038 volume 2689.0 当前持仓量 87.0 当前持仓成本 46.14279604\n",
      "date 2019-05-06 open 41.26942587 volume 4283.0 当前持仓量 87.0 当前持仓成本 46.14279604\n",
      "date 2019-05-07 open 39.41877897 volume 3272.0 当前持仓量 87.0 当前持仓成本 46.14279604\n",
      "date 2019-05-08 open 39.64500182 volume 2137.0 当前持仓量 87.0 当前持仓成本 46.14279604\n",
      "date 2019-05-09 open 40.99434548 volume 3019.0 当前持仓量 87.0 当前持仓成本 46.14279604\n",
      "date 2019-05-10 open 39.96627412 volume 3810.0 当前持仓量 87.0 当前持仓成本 46.14279604\n",
      "date 2019-05-13 open 40.28754642 volume 1723.0 当前持仓量 87.0 当前持仓成本 46.14279604\n",
      "date 2019-05-14 open 39.5164929 volume 1612.0 当前持仓量 87.0 当前持仓成本 46.14279604\n",
      "date 2019-05-15 open 39.8377652 volume 2096.0 当前持仓量 87.0 当前持仓成本 46.14279604\n",
      "date 2019-05-16 open 40.35180088 volume 1424.0 当前持仓量 87.0 当前持仓成本 46.14279604\n",
      "date 2019-05-17 open 40.93009102 volume 2470.0 当前持仓量 87.0 当前持仓成本 46.14279604\n",
      "2019-05-20, SELL EXECUTED, ref:2672, Price: 39.7735, Size: -87.00, Remsize: 0.00, Cost: 4014.4233, Stock: 600466.SH\n",
      "date 2019-05-20 open 39.77351074 volume 1686.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2019-05-21, BUY EXECUTED, ref:2673，Price: 39.2595, Size: 960.00, Remsize: 1040.00, Cost: 37689.0961, Stock: 600466.SH\n",
      "date 2019-05-21 open 39.25947506 volume 1921.0 当前持仓量 960.0 当前持仓成本 39.25947506\n",
      "date 2019-05-22 open 39.96627412 volume 1990.0 当前持仓量 960.0 当前持仓成本 39.25947506\n",
      "date 2019-05-23 open 39.32372952 volume 1544.0 当前持仓量 960.0 当前持仓成本 39.25947506\n",
      "date 2019-05-24 open 38.61693046 volume 1794.0 当前持仓量 960.0 当前持仓成本 39.25947506\n",
      "date 2019-05-27 open 37.71736802 volume 2244.0 当前持仓量 960.0 当前持仓成本 39.25947506\n",
      "date 2019-05-28 open 38.552676 volume 1760.0 当前持仓量 960.0 当前持仓成本 39.25947506\n",
      "date 2019-05-29 open 38.35991262 volume 1912.0 当前持仓量 960.0 当前持仓成本 39.25947506\n",
      "date 2019-05-30 open 37.65311356 volume 1158.0 当前持仓量 960.0 当前持仓成本 39.25947506\n",
      "date 2019-05-31 open 38.10289478 volume 1568.0 当前持仓量 960.0 当前持仓成本 39.25947506\n",
      "date 2019-06-03 open 37.78162248 volume 1421.0 当前持仓量 960.0 当前持仓成本 39.25947506\n",
      "date 2019-06-04 open 37.71736802 volume 1777.0 当前持仓量 960.0 当前持仓成本 39.25947506\n",
      "date 2019-06-05 open 37.07482342 volume 3116.0 当前持仓量 960.0 当前持仓成本 39.25947506\n",
      "date 2019-06-06 open 37.65311356 volume 1417.0 当前持仓量 960.0 当前持仓成本 39.25947506\n",
      "date 2019-06-10 open 36.9463145 volume 3058.0 当前持仓量 960.0 当前持仓成本 39.25947506\n",
      "date 2019-06-11 open 38.48842154 volume 4038.0 当前持仓量 960.0 当前持仓成本 39.25947506\n",
      "date 2019-06-12 open 39.90201966 volume 1785.0 当前持仓量 960.0 当前持仓成本 39.25947506\n",
      "2019-06-13, SELL EXECUTED, ref:2674, Price: 40.0948, Size: -802.00, Remsize: -158.00, Cost: 31486.0990, Stock: 600466.SH\n",
      "date 2019-06-13 open 40.09478304 volume 1605.0 当前持仓量 158.0 当前持仓成本 39.25947506\n",
      "date 2019-06-14 open 40.1590375 volume 4020.0 当前持仓量 158.0 当前持仓成本 39.25947506\n",
      "date 2019-06-17 open 40.93009102 volume 1793.0 当前持仓量 158.0 当前持仓成本 39.25947506\n",
      "date 2019-06-18 open 40.41605534 volume 1363.0 当前持仓量 158.0 当前持仓成本 39.25947506\n",
      "date 2019-06-19 open 41.05859994 volume 1910.0 当前持仓量 158.0 当前持仓成本 39.25947506\n",
      "date 2019-06-20 open 40.35180088 volume 1901.0 当前持仓量 158.0 当前持仓成本 39.25947506\n",
      "date 2019-06-21 open 41.25136332 volume 1853.0 当前持仓量 158.0 当前持仓成本 39.25947506\n",
      "date 2019-06-24 open 41.25136332 volume 1459.0 当前持仓量 158.0 当前持仓成本 39.25947506\n",
      "date 2019-06-25 open 41.50838116 volume 1512.0 当前持仓量 158.0 当前持仓成本 39.25947506\n",
      "date 2019-06-26 open 40.4803098 volume 1326.0 当前持仓量 158.0 当前持仓成本 39.25947506\n",
      "date 2019-06-27 open 40.99434548 volume 1422.0 当前持仓量 158.0 当前持仓成本 39.25947506\n",
      "date 2019-06-28 open 40.93009102 volume 1404.0 当前持仓量 158.0 当前持仓成本 39.25947506\n",
      "date 2019-07-01 open 40.4803098 volume 2632.0 当前持仓量 158.0 当前持仓成本 39.25947506\n",
      "date 2019-07-02 open 40.4803098 volume 2620.0 当前持仓量 158.0 当前持仓成本 39.25947506\n",
      "date 2019-07-03 open 39.96627412 volume 3601.0 当前持仓量 158.0 当前持仓成本 39.25947506\n",
      "date 2019-07-04 open 40.99434548 volume 3978.0 当前持仓量 158.0 当前持仓成本 39.25947506\n",
      "date 2019-07-05 open 41.765399 volume 2579.0 当前持仓量 158.0 当前持仓成本 39.25947506\n",
      "2019-07-08, SELL EXECUTED, ref:2675, Price: 40.9301, Size: -158.00, Remsize: 0.00, Cost: 6202.9971, Stock: 600466.SH\n",
      "date 2019-07-08 open 40.93009102 volume 2822.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-07-09 open 39.38798398 volume 1476.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-07-10 open 39.8377652 volume 3845.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2019-07-11, BUY EXECUTED, ref:2676，Price: 38.4884, Size: 2000.00, Remsize: 0.00, Cost: 76976.8431, Stock: 600466.SH\n",
      "date 2019-07-11 open 38.48842154 volume 4787.0 当前持仓量 2000.0 当前持仓成本 38.48842154\n",
      "date 2019-07-12 open 39.64500182 volume 2275.0 当前持仓量 2000.0 当前持仓成本 38.48842154\n",
      "date 2019-07-15 open 39.58074736 volume 3680.0 当前持仓量 2000.0 当前持仓成本 38.48842154\n",
      "date 2019-07-16 open 40.4803098 volume 2541.0 当前持仓量 2000.0 当前持仓成本 38.48842154\n",
      "date 2019-07-17 open 41.444126700000005 volume 2703.0 当前持仓量 2000.0 当前持仓成本 38.48842154\n",
      "2019-07-18, SELL EXECUTED, ref:2677, Price: 41.1871, Size: -1678.00, Remsize: -322.00, Cost: 64583.5713, Stock: 600466.SH\n",
      "date 2019-07-18 open 41.18710886 volume 3357.0 当前持仓量 322.0 当前持仓成本 38.48842154\n",
      "date 2019-07-19 open 40.60881872 volume 3478.0 当前持仓量 322.0 当前持仓成本 38.48842154\n",
      "date 2019-07-22 open 41.89390792 volume 2564.0 当前持仓量 322.0 当前持仓成本 38.48842154\n",
      "date 2019-07-23 open 41.70114454 volume 2857.0 当前持仓量 322.0 当前持仓成本 38.48842154\n",
      "date 2019-07-24 open 40.93009102 volume 3005.0 当前持仓量 322.0 当前持仓成本 38.48842154\n",
      "date 2019-07-25 open 40.54456426 volume 3082.0 当前持仓量 322.0 当前持仓成本 38.48842154\n",
      "date 2019-07-26 open 40.03052858 volume 2685.0 当前持仓量 322.0 当前持仓成本 38.48842154\n",
      "date 2019-07-29 open 41.25136332 volume 2451.0 当前持仓量 322.0 当前持仓成本 38.48842154\n",
      "date 2019-07-30 open 40.1590375 volume 1885.0 当前持仓量 322.0 当前持仓成本 38.48842154\n",
      "date 2019-07-31 open 40.09478304 volume 3480.0 当前持仓量 322.0 当前持仓成本 38.48842154\n",
      "date 2019-08-01 open 39.1952206 volume 2475.0 当前持仓量 322.0 当前持仓成本 38.48842154\n",
      "date 2019-08-02 open 37.5888591 volume 2944.0 当前持仓量 322.0 当前持仓成本 38.48842154\n",
      "date 2019-08-05 open 37.13907788 volume 1926.0 当前持仓量 322.0 当前持仓成本 38.48842154\n",
      "date 2019-08-06 open 36.11100652 volume 2587.0 当前持仓量 322.0 当前持仓成本 38.48842154\n",
      "date 2019-08-07 open 37.39609572 volume 1978.0 当前持仓量 322.0 当前持仓成本 38.48842154\n",
      "date 2019-08-08 open 37.5888591 volume 1299.0 当前持仓量 322.0 当前持仓成本 38.48842154\n",
      "date 2019-08-09 open 37.2675868 volume 1690.0 当前持仓量 322.0 当前持仓成本 38.48842154\n",
      "date 2019-08-12 open 36.49653328 volume 1166.0 当前持仓量 322.0 当前持仓成本 38.48842154\n",
      "date 2019-08-13 open 36.75355112 volume 996.0 当前持仓量 322.0 当前持仓成本 38.48842154\n",
      "date 2019-08-14 open 36.88206004 volume 966.0 当前持仓量 322.0 当前持仓成本 38.48842154\n",
      "date 2019-08-15 open 35.6612253 volume 1165.0 当前持仓量 322.0 当前持仓成本 38.48842154\n",
      "date 2019-08-16 open 36.6250422 volume 1412.0 当前持仓量 322.0 当前持仓成本 38.48842154\n",
      "date 2019-08-19 open 36.56078774 volume 1936.0 当前持仓量 322.0 当前持仓成本 38.48842154\n",
      "date 2019-08-20 open 37.910131400000004 volume 1446.0 当前持仓量 322.0 当前持仓成本 38.48842154\n",
      "2019-08-21, SELL EXECUTED, ref:2678, Price: 37.8459, Size: -322.00, Remsize: 0.00, Cost: 12393.2717, Stock: 600466.SH\n",
      "date 2019-08-21 open 37.84587694 volume 1448.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-08-22 open 38.74543938 volume 1163.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-08-23 open 39.13096614 volume 3117.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-08-26 open 39.25947506 volume 1971.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-08-27 open 39.32372952 volume 1953.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-08-28 open 38.93820276 volume 1607.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-08-29 open 39.13096614 volume 2368.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-08-30 open 38.29565816 volume 2230.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2019-09-02, BUY EXECUTED, ref:2679，Price: 36.6893, Size: 1186.00, Remsize: 814.00, Cost: 43513.5058, Stock: 600466.SH\n",
      "date 2019-09-02 open 36.68929666 volume 2373.0 当前持仓量 1186.0 当前持仓成本 36.68929666\n",
      "date 2019-09-03 open 37.33184126 volume 1505.0 当前持仓量 1186.0 当前持仓成本 36.68929666\n",
      "date 2019-09-04 open 36.88206004 volume 2749.0 当前持仓量 1186.0 当前持仓成本 36.68929666\n",
      "date 2019-09-05 open 38.74543938 volume 2726.0 当前持仓量 1186.0 当前持仓成本 36.68929666\n",
      "date 2019-09-06 open 39.1952206 volume 1786.0 当前持仓量 1186.0 当前持仓成本 36.68929666\n",
      "date 2019-09-09 open 39.58074736 volume 2054.0 当前持仓量 1186.0 当前持仓成本 36.68929666\n",
      "2019-09-10, SELL EXECUTED, ref:2680, Price: 39.5807, Size: -650.00, Remsize: -536.00, Cost: 23848.0428, Stock: 600466.SH\n",
      "date 2019-09-10 open 39.58074736 volume 1300.0 当前持仓量 536.0 当前持仓成本 36.68929666\n",
      "date 2019-09-11 open 39.06671168 volume 1379.0 当前持仓量 536.0 当前持仓成本 36.68929666\n",
      "date 2019-09-12 open 39.13096614 volume 4112.0 当前持仓量 536.0 当前持仓成本 36.68929666\n",
      "date 2019-09-16 open 40.8015821 volume 2674.0 当前持仓量 536.0 当前持仓成本 36.68929666\n",
      "date 2019-09-17 open 40.54456426 volume 1741.0 当前持仓量 536.0 当前持仓成本 36.68929666\n",
      "date 2019-09-18 open 40.28754642 volume 2315.0 当前持仓量 536.0 当前持仓成本 36.68929666\n",
      "date 2019-09-19 open 41.1228544 volume 2477.0 当前持仓量 536.0 当前持仓成本 36.68929666\n",
      "date 2019-09-20 open 40.4803098 volume 1456.0 当前持仓量 536.0 当前持仓成本 36.68929666\n",
      "date 2019-09-23 open 40.4803098 volume 1499.0 当前持仓量 536.0 当前持仓成本 36.68929666\n",
      "date 2019-09-24 open 39.64500182 volume 1575.0 当前持仓量 536.0 当前持仓成本 36.68929666\n",
      "date 2019-09-25 open 39.45223844 volume 1566.0 当前持仓量 536.0 当前持仓成本 36.68929666\n",
      "date 2019-09-26 open 39.58074736 volume 1797.0 当前持仓量 536.0 当前持仓成本 36.68929666\n",
      "date 2019-09-27 open 39.38798398 volume 1877.0 当前持仓量 536.0 当前持仓成本 36.68929666\n",
      "date 2019-09-30 open 38.552676 volume 1200.0 当前持仓量 536.0 当前持仓成本 36.68929666\n",
      "date 2019-10-08 open 39.13096614 volume 3249.0 当前持仓量 536.0 当前持仓成本 36.68929666\n",
      "date 2019-10-09 open 40.22329196 volume 3859.0 当前持仓量 536.0 当前持仓成本 36.68929666\n",
      "date 2019-10-10 open 41.57263562 volume 3732.0 当前持仓量 536.0 当前持仓成本 36.68929666\n",
      "2019-10-11, SELL EXECUTED, ref:2681, Price: 43.0505, Size: -536.00, Remsize: 0.00, Cost: 19665.4630, Stock: 600466.SH\n",
      "date 2019-10-11 open 43.050488200000004 volume 2498.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-10-14 open 43.11474266 volume 4972.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-10-15 open 44.46408632 volume 4407.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-10-16 open 45.74917552 volume 4333.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-10-17 open 46.2632112 volume 4711.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-10-18 open 45.9419389 volume 6712.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-10-21 open 42.407943599999996 volume 4252.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-10-22 open 42.7292159 volume 2510.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-10-23 open 42.15092576 volume 2294.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2019-10-24, BUY EXECUTED, ref:2682，Price: 41.3799, Size: 1067.00, Remsize: 933.00, Cost: 44152.3237, Stock: 600466.SH\n",
      "date 2019-10-24 open 41.37987224 volume 2135.0 当前持仓量 1067.0 当前持仓成本 41.37987224\n",
      "date 2019-10-25 open 42.27943468 volume 4224.0 当前持仓量 1067.0 当前持仓成本 41.37987224\n",
      "date 2019-10-28 open 42.47219806 volume 2998.0 当前持仓量 1067.0 当前持仓成本 41.37987224\n",
      "date 2019-10-29 open 41.765399 volume 2092.0 当前持仓量 1067.0 当前持仓成本 41.37987224\n",
      "date 2019-10-30 open 41.31561778 volume 2020.0 当前持仓量 1067.0 当前持仓成本 41.37987224\n",
      "date 2019-10-31 open 40.86583656 volume 1937.0 当前持仓量 1067.0 当前持仓成本 41.37987224\n",
      "date 2019-11-01 open 40.8015821 volume 2425.0 当前持仓量 1067.0 当前持仓成本 41.37987224\n",
      "date 2019-11-04 open 41.95816238 volume 2552.0 当前持仓量 1067.0 当前持仓成本 41.37987224\n",
      "date 2019-11-05 open 42.21518022 volume 4810.0 当前持仓量 1067.0 当前持仓成本 41.37987224\n",
      "date 2019-11-06 open 43.62877834 volume 3756.0 当前持仓量 1067.0 当前持仓成本 41.37987224\n",
      "2019-11-07, SELL EXECUTED, ref:2683, Price: 42.2152, Size: -971.00, Remsize: -96.00, Cost: 40179.8559, Stock: 600466.SH\n",
      "date 2019-11-07 open 42.21518022 volume 1943.0 当前持仓量 96.0 当前持仓成本 41.37987224\n",
      "date 2019-11-08 open 42.66496144 volume 2025.0 当前持仓量 96.0 当前持仓成本 41.37987224\n",
      "date 2019-11-11 open 41.70114454 volume 1750.0 当前持仓量 96.0 当前持仓成本 41.37987224\n",
      "date 2019-11-12 open 41.05859994 volume 1567.0 当前持仓量 96.0 当前持仓成本 41.37987224\n",
      "date 2019-11-13 open 40.99434548 volume 1776.0 当前持仓量 96.0 当前持仓成本 41.37987224\n",
      "date 2019-11-14 open 40.41605534 volume 1248.0 当前持仓量 96.0 当前持仓成本 41.37987224\n",
      "date 2019-11-15 open 40.8015821 volume 1167.0 当前持仓量 96.0 当前持仓成本 41.37987224\n",
      "date 2019-11-18 open 40.1590375 volume 1560.0 当前持仓量 96.0 当前持仓成本 41.37987224\n",
      "date 2019-11-19 open 41.57263562 volume 1696.0 当前持仓量 96.0 当前持仓成本 41.37987224\n",
      "date 2019-11-20 open 42.60070698 volume 2259.0 当前持仓量 96.0 当前持仓成本 41.37987224\n",
      "2019-11-21, SELL EXECUTED, ref:2684, Price: 42.7935, Size: -96.00, Remsize: 0.00, Cost: 3972.4677, Stock: 600466.SH\n",
      "date 2019-11-21 open 42.79347036 volume 2059.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-11-22 open 43.17899712 volume 2225.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-11-25 open 42.85772482 volume 3066.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-11-26 open 43.56452388 volume 3271.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-11-27 open 42.47219806 volume 4678.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-11-28 open 43.6930328 volume 1961.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-11-29 open 42.92197928 volume 1316.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-12-02 open 42.66496144 volume 2120.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2019-12-03, BUY EXECUTED, ref:2685，Price: 43.6930, Size: 1134.00, Remsize: 866.00, Cost: 49547.8992, Stock: 600466.SH\n",
      "date 2019-12-03 open 43.6930328 volume 2268.0 当前持仓量 1134.0 当前持仓成本 43.6930328\n",
      "2019-12-04, SELL EXECUTED, ref:2686, Price: 44.0143, Size: -949.00, Remsize: -185.00, Cost: 41464.6881, Stock: 600466.SH\n",
      "date 2019-12-04 open 44.0143051 volume 1899.0 当前持仓量 185.0 当前持仓成本 43.6930328\n",
      "date 2019-12-05 open 43.56452388 volume 1806.0 当前持仓量 185.0 当前持仓成本 43.6930328\n",
      "date 2019-12-06 open 42.98623374 volume 1564.0 当前持仓量 185.0 当前持仓成本 43.6930328\n",
      "date 2019-12-09 open 43.11474266 volume 3443.0 当前持仓量 185.0 当前持仓成本 43.6930328\n",
      "date 2019-12-10 open 44.27132294 volume 1742.0 当前持仓量 185.0 当前持仓成本 43.6930328\n",
      "date 2019-12-11 open 44.27132294 volume 2445.0 当前持仓量 185.0 当前持仓成本 43.6930328\n",
      "date 2019-12-12 open 44.59259524 volume 2210.0 当前持仓量 185.0 当前持仓成本 43.6930328\n",
      "date 2019-12-13 open 44.84961308 volume 2446.0 当前持仓量 185.0 当前持仓成本 43.6930328\n",
      "date 2019-12-16 open 45.10663092 volume 2348.0 当前持仓量 185.0 当前持仓成本 43.6930328\n",
      "date 2019-12-17 open 44.84961308 volume 3060.0 当前持仓量 185.0 当前持仓成本 43.6930328\n",
      "date 2019-12-18 open 45.49215768 volume 2535.0 当前持仓量 185.0 当前持仓成本 43.6930328\n",
      "date 2019-12-19 open 45.87768444 volume 2372.0 当前持仓量 185.0 当前持仓成本 43.6930328\n",
      "date 2019-12-20 open 45.6206666 volume 4081.0 当前持仓量 185.0 当前持仓成本 43.6930328\n",
      "date 2019-12-23 open 46.32746566 volume 2637.0 当前持仓量 185.0 当前持仓成本 43.6930328\n",
      "date 2019-12-24 open 45.42790322 volume 2566.0 当前持仓量 185.0 当前持仓成本 43.6930328\n",
      "date 2019-12-25 open 44.84961308 volume 1459.0 当前持仓量 185.0 当前持仓成本 43.6930328\n",
      "date 2019-12-26 open 45.17088538 volume 2782.0 当前持仓量 185.0 当前持仓成本 43.6930328\n",
      "date 2019-12-27 open 45.49215768 volume 2169.0 当前持仓量 185.0 当前持仓成本 43.6930328\n",
      "date 2019-12-30 open 45.6206666 volume 2046.0 当前持仓量 185.0 当前持仓成本 43.6930328\n",
      "date 2019-12-31 open 46.00619336 volume 3502.0 当前持仓量 185.0 当前持仓成本 43.6930328\n",
      "2020-01-02, SELL EXECUTED, ref:2687, Price: 48.0623, Size: -185.00, Remsize: 0.00, Cost: 8083.2111, Stock: 600466.SH\n",
      "date 2020-01-02 open 48.06233608 volume 5342.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-01-03 open 49.09040744 volume 3570.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-01-06 open 48.190845 volume 2771.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-01-07 open 47.48404594 volume 1846.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-01-08 open 47.48404594 volume 2848.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-01-09 open 47.99808162 volume 2836.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-01-10 open 49.21891636 volume 1710.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-01-13 open 49.02615298 volume 1699.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-01-14 open 49.1546619 volume 1626.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-01-15 open 48.06233608 volume 1889.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-01-16 open 47.99808162 volume 1095.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-01-17 open 47.80531824 volume 1108.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2020-01-20, BUY EXECUTED, ref:2688，Price: 47.0985, Size: 1147.00, Remsize: 853.00, Cost: 54022.0015, Stock: 600466.SH\n",
      "date 2020-01-20 open 47.09851918 volume 2294.0 当前持仓量 1147.0 当前持仓成本 47.09851918\n",
      "date 2020-01-21 open 46.52022904 volume 2977.0 当前持仓量 1147.0 当前持仓成本 47.09851918\n",
      "date 2020-01-22 open 45.17088538 volume 2039.0 当前持仓量 1147.0 当前持仓成本 47.09851918\n",
      "date 2020-01-23 open 45.49215768 volume 2148.0 当前持仓量 1147.0 当前持仓成本 47.09851918\n",
      "date 2020-02-03 open 39.70925628 volume 310.0 当前持仓量 1147.0 当前持仓成本 47.09851918\n",
      "date 2020-02-04 open 37.07482342 volume 3831.0 当前持仓量 1147.0 当前持仓成本 47.09851918\n",
      "date 2020-02-05 open 39.70925628 volume 2462.0 当前持仓量 1147.0 当前持仓成本 47.09851918\n",
      "date 2020-02-06 open 39.8377652 volume 2434.0 当前持仓量 1147.0 当前持仓成本 47.09851918\n",
      "date 2020-02-07 open 40.1590375 volume 2372.0 当前持仓量 1147.0 当前持仓成本 47.09851918\n",
      "date 2020-02-10 open 40.03052858 volume 2313.0 当前持仓量 1147.0 当前持仓成本 47.09851918\n",
      "date 2020-02-11 open 40.93009102 volume 4257.0 当前持仓量 1147.0 当前持仓成本 47.09851918\n",
      "date 2020-02-12 open 42.7292159 volume 2847.0 当前持仓量 1147.0 当前持仓成本 47.09851918\n",
      "date 2020-02-13 open 42.66496144 volume 4834.0 当前持仓量 1147.0 当前持仓成本 47.09851918\n",
      "2020-02-14, SELL EXECUTED, ref:2689, Price: 44.2713, Size: -1147.00, Remsize: 0.00, Cost: 54022.0015, Stock: 600466.SH\n",
      "date 2020-02-14 open 44.27132294 volume 2756.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-02-17 open 45.42790322 volume 2760.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-02-18 open 45.17088538 volume 3601.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-02-19 open 43.88579618 volume 1975.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-02-20 open 44.0143051 volume 2237.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-02-21 open 43.88579618 volume 2046.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-02-24 open 43.43601496 volume 4834.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2020-02-25, BUY EXECUTED, ref:2690，Price: 41.6369, Size: 1537.00, Remsize: 463.00, Cost: 63995.9001, Stock: 600466.SH\n",
      "date 2020-02-25 open 41.63689008 volume 3074.0 当前持仓量 1537.0 当前持仓成本 41.63689008\n",
      "date 2020-02-26 open 41.95816238 volume 3624.0 当前持仓量 1537.0 当前持仓成本 41.63689008\n",
      "date 2020-02-27 open 42.98623374 volume 3044.0 当前持仓量 1537.0 当前持仓成本 41.63689008\n",
      "date 2020-02-28 open 41.70114454 volume 2864.0 当前持仓量 1537.0 当前持仓成本 41.63689008\n",
      "date 2020-03-02 open 42.15092576 volume 5272.0 当前持仓量 1537.0 当前持仓成本 41.63689008\n",
      "date 2020-03-03 open 45.299394299999996 volume 3579.0 当前持仓量 1537.0 当前持仓成本 41.63689008\n",
      "date 2020-03-04 open 43.75728726 volume 4381.0 当前持仓量 1537.0 当前持仓成本 41.63689008\n",
      "2020-03-05, SELL EXECUTED, ref:2691, Price: 45.3636, Size: -1398.00, Remsize: -139.00, Cost: 58208.3723, Stock: 600466.SH\n",
      "date 2020-03-05 open 45.36364876 volume 2796.0 当前持仓量 139.0 当前持仓成本 41.63689008\n",
      "date 2020-03-06 open 45.10663092 volume 2978.0 当前持仓量 139.0 当前持仓成本 41.63689008\n",
      "date 2020-03-09 open 42.92197928 volume 3925.0 当前持仓量 139.0 当前持仓成本 41.63689008\n",
      "date 2020-03-10 open 41.31561778 volume 2517.0 当前持仓量 139.0 当前持仓成本 41.63689008\n",
      "date 2020-03-11 open 43.050488200000004 volume 2674.0 当前持仓量 139.0 当前持仓成本 41.63689008\n",
      "date 2020-03-12 open 42.79347036 volume 1674.0 当前持仓量 139.0 当前持仓成本 41.63689008\n",
      "date 2020-03-13 open 40.03052858 volume 2082.0 当前持仓量 139.0 当前持仓成本 41.63689008\n",
      "date 2020-03-16 open 41.18710886 volume 2212.0 当前持仓量 139.0 当前持仓成本 41.63689008\n",
      "date 2020-03-17 open 39.96627412 volume 1677.0 当前持仓量 139.0 当前持仓成本 41.63689008\n",
      "date 2020-03-18 open 40.1590375 volume 2535.0 当前持仓量 139.0 当前持仓成本 41.63689008\n",
      "date 2020-03-19 open 38.42416708 volume 2308.0 当前持仓量 139.0 当前持仓成本 41.63689008\n",
      "date 2020-03-20 open 38.16714924 volume 1448.0 当前持仓量 139.0 当前持仓成本 41.63689008\n",
      "date 2020-03-23 open 36.75355112 volume 1500.0 当前持仓量 139.0 当前持仓成本 41.63689008\n",
      "date 2020-03-24 open 37.33184126 volume 1749.0 当前持仓量 139.0 当前持仓成本 41.63689008\n",
      "date 2020-03-25 open 38.93820276 volume 2198.0 当前持仓量 139.0 当前持仓成本 41.63689008\n",
      "date 2020-03-26 open 39.38798398 volume 1140.0 当前持仓量 139.0 当前持仓成本 41.63689008\n",
      "date 2020-03-27 open 40.1590375 volume 1556.0 当前持仓量 139.0 当前持仓成本 41.63689008\n",
      "date 2020-03-30 open 39.5164929 volume 1144.0 当前持仓量 139.0 当前持仓成本 41.63689008\n",
      "2020-03-31, SELL EXECUTED, ref:2692, Price: 40.1590, Size: -139.00, Remsize: 0.00, Cost: 5787.5277, Stock: 600466.SH\n",
      "date 2020-03-31 open 40.1590375 volume 1968.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-04-01 open 38.93820276 volume 1736.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-04-02 open 38.552676 volume 1523.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-04-03 open 39.00245722 volume 1175.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-04-07 open 39.25947506 volume 2085.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2020-04-08, BUY EXECUTED, ref:2693，Price: 39.2595, Size: 945.00, Remsize: 1055.00, Cost: 37100.2039, Stock: 600466.SH\n",
      "date 2020-04-08 open 39.25947506 volume 1891.0 当前持仓量 945.0 当前持仓成本 39.25947506\n",
      "date 2020-04-09 open 39.96627412 volume 1264.0 当前持仓量 945.0 当前持仓成本 39.25947506\n",
      "date 2020-04-10 open 39.77351074 volume 1305.0 当前持仓量 945.0 当前持仓成本 39.25947506\n",
      "2020-04-13, SELL EXECUTED, ref:2694, Price: 39.4522, Size: -491.00, Remsize: -454.00, Cost: 19276.4023, Stock: 600466.SH\n",
      "date 2020-04-13 open 39.45223844 volume 983.0 当前持仓量 454.0 当前持仓成本 39.25947506\n",
      "date 2020-04-14 open 39.5164929 volume 1280.0 当前持仓量 454.0 当前持仓成本 39.25947506\n",
      "date 2020-04-15 open 40.1590375 volume 1276.0 当前持仓量 454.0 当前持仓成本 39.25947506\n",
      "date 2020-04-16 open 39.5164929 volume 1373.0 当前持仓量 454.0 当前持仓成本 39.25947506\n",
      "date 2020-04-17 open 39.90201966 volume 1920.0 当前持仓量 454.0 当前持仓成本 39.25947506\n",
      "date 2020-04-20 open 39.58074736 volume 4603.0 当前持仓量 454.0 当前持仓成本 39.25947506\n",
      "date 2020-04-21 open 37.910131400000004 volume 3693.0 当前持仓量 454.0 当前持仓成本 39.25947506\n",
      "date 2020-04-22 open 36.68929666 volume 2730.0 当前持仓量 454.0 当前持仓成本 39.25947506\n",
      "date 2020-04-23 open 37.07482342 volume 2367.0 当前持仓量 454.0 当前持仓成本 39.25947506\n",
      "date 2020-04-24 open 36.88206004 volume 1935.0 当前持仓量 454.0 当前持仓成本 39.25947506\n",
      "date 2020-04-27 open 36.11100652 volume 1506.0 当前持仓量 454.0 当前持仓成本 39.25947506\n",
      "date 2020-04-28 open 36.43227882 volume 2930.0 当前持仓量 454.0 当前持仓成本 39.25947506\n",
      "date 2020-04-29 open 35.40420746 volume 1939.0 当前持仓量 454.0 当前持仓成本 39.25947506\n",
      "date 2020-04-30 open 36.04675206 volume 4180.0 当前持仓量 454.0 当前持仓成本 39.25947506\n",
      "date 2020-05-06 open 36.6250422 volume 5815.0 当前持仓量 454.0 当前持仓成本 39.25947506\n",
      "date 2020-05-07 open 35.91824314 volume 3912.0 当前持仓量 454.0 当前持仓成本 39.25947506\n",
      "date 2020-05-08 open 35.6612253 volume 2744.0 当前持仓量 454.0 当前持仓成本 39.25947506\n",
      "date 2020-05-11 open 36.36802436 volume 2749.0 当前持仓量 454.0 当前持仓成本 39.25947506\n",
      "2020-05-12, SELL EXECUTED, ref:2695, Price: 35.9825, Size: -454.00, Remsize: 0.00, Cost: 17823.8017, Stock: 600466.SH\n",
      "date 2020-05-12 open 35.9824976 volume 3026.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2020-05-13, BUY EXECUTED, ref:2696，Price: 35.2114, Size: 965.00, Remsize: 1035.00, Cost: 33979.0435, Stock: 600466.SH\n",
      "date 2020-05-13 open 35.21144408 volume 1931.0 当前持仓量 965.0 当前持仓成本 35.21144408\n",
      "date 2020-05-14 open 35.018680700000004 volume 1577.0 当前持仓量 965.0 当前持仓成本 35.21144408\n",
      "date 2020-05-15 open 34.6974084 volume 1212.0 当前持仓量 965.0 当前持仓成本 35.21144408\n",
      "date 2020-05-18 open 34.89017178 volume 1696.0 当前持仓量 965.0 当前持仓成本 35.21144408\n",
      "date 2020-05-19 open 34.76166286 volume 2818.0 当前持仓量 965.0 当前持仓成本 35.21144408\n",
      "date 2020-05-20 open 33.733591499999996 volume 3053.0 当前持仓量 965.0 当前持仓成本 35.21144408\n",
      "date 2020-05-21 open 33.66933704 volume 2194.0 当前持仓量 965.0 当前持仓成本 35.21144408\n",
      "date 2020-05-22 open 32.89828352 volume 1739.0 当前持仓量 965.0 当前持仓成本 35.21144408\n",
      "date 2020-05-25 open 32.4485023 volume 1575.0 当前持仓量 965.0 当前持仓成本 35.21144408\n",
      "date 2020-05-26 open 33.02679244 volume 1222.0 当前持仓量 965.0 当前持仓成本 35.21144408\n",
      "date 2020-05-27 open 32.89828352 volume 1736.0 当前持仓量 965.0 当前持仓成本 35.21144408\n",
      "date 2020-05-28 open 33.15530136 volume 1498.0 当前持仓量 965.0 当前持仓成本 35.21144408\n",
      "date 2020-05-29 open 33.21955582 volume 1554.0 当前持仓量 965.0 当前持仓成本 35.21144408\n",
      "date 2020-06-01 open 32.83402906 volume 3244.0 当前持仓量 965.0 当前持仓成本 35.21144408\n",
      "date 2020-06-02 open 33.28381028 volume 4819.0 当前持仓量 965.0 当前持仓成本 35.21144408\n",
      "2020-06-03, SELL EXECUTED, ref:2697, Price: 34.3119, Size: -965.00, Remsize: 0.00, Cost: 33979.0435, Stock: 600466.SH\n",
      "date 2020-06-03 open 34.31188164 volume 4069.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-06-04 open 33.86210042 volume 2277.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-06-05 open 33.66933704 volume 1800.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-06-08 open 33.54082812 volume 2737.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-06-09 open 33.86210042 volume 2284.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-06-10 open 33.60508258 volume 1886.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-06-11 open 33.21955582 volume 2189.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2020-06-12, BUY EXECUTED, ref:2698，Price: 32.2557, Size: 868.00, Remsize: 1132.00, Cost: 27997.9814, Stock: 600466.SH\n",
      "date 2020-06-12 open 32.25573892 volume 1736.0 当前持仓量 868.0 当前持仓成本 32.25573892\n",
      "date 2020-06-15 open 32.64126568 volume 1543.0 当前持仓量 868.0 当前持仓成本 32.25573892\n",
      "date 2020-06-16 open 32.769774600000005 volume 1775.0 当前持仓量 868.0 当前持仓成本 32.25573892\n",
      "date 2020-06-17 open 32.96253798 volume 1709.0 当前持仓量 868.0 当前持仓成本 32.25573892\n",
      "date 2020-06-18 open 32.83402906 volume 7936.0 当前持仓量 868.0 当前持仓成本 32.25573892\n",
      "date 2020-06-19 open 34.76166286 volume 3858.0 当前持仓量 868.0 当前持仓成本 32.25573892\n",
      "2020-06-22, SELL EXECUTED, ref:2699, Price: 34.6332, Size: -868.00, Remsize: 0.00, Cost: 27997.9814, Stock: 600466.SH\n",
      "date 2020-06-22 open 34.63315394 volume 2504.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-06-23 open 35.018680700000004 volume 6101.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-06-24 open 33.79784596 volume 5632.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-06-29 open 35.21144408 volume 3646.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-06-30 open 34.56889948 volume 2848.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-07-01 open 34.89017178 volume 8046.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-07-02 open 36.75355112 volume 8577.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-07-03 open 38.68118492 volume 7230.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-07-06 open 39.29205384 volume 8118.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-07-07 open 41.519953799999996 volume 7905.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-07-08 open 39.832150799999994 volume 5651.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-07-09 open 40.23722352 volume 7401.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-07-10 open 40.30473564 volume 4887.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-07-13 open 39.35956596 volume 4641.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-07-14 open 39.89966292 volume 4713.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-07-15 open 39.69712656 volume 4891.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2020-07-16, BUY EXECUTED, ref:2700，Price: 38.7520, Size: 1867.00, Remsize: 133.00, Cost: 72349.9035, Stock: 600466.SH\n",
      "date 2020-07-16 open 38.75195688 volume 3735.0 当前持仓量 1867.0 当前持仓成本 38.75195688\n",
      "date 2020-07-17 open 37.60425084 volume 3094.0 当前持仓量 1867.0 当前持仓成本 38.75195688\n",
      "date 2020-07-20 open 37.26669024 volume 3190.0 当前持仓量 1867.0 当前持仓成本 38.75195688\n",
      "date 2020-07-21 open 38.54942052 volume 2395.0 当前持仓量 1867.0 当前持仓成本 38.75195688\n",
      "date 2020-07-22 open 38.21185992 volume 2342.0 当前持仓量 1867.0 当前持仓成本 38.75195688\n",
      "date 2020-07-23 open 37.8067872 volume 2665.0 当前持仓量 1867.0 当前持仓成本 38.75195688\n",
      "date 2020-07-24 open 37.33420236 volume 2875.0 当前持仓量 1867.0 当前持仓成本 38.75195688\n",
      "date 2020-07-27 open 36.456544799999996 volume 1902.0 当前持仓量 1867.0 当前持仓成本 38.75195688\n",
      "date 2020-07-28 open 35.71391148 volume 1472.0 当前持仓量 1867.0 当前持仓成本 38.75195688\n",
      "date 2020-07-29 open 35.84893572 volume 2811.0 当前持仓量 1867.0 当前持仓成本 38.75195688\n",
      "date 2020-07-30 open 36.32152056 volume 1767.0 当前持仓量 1867.0 当前持仓成本 38.75195688\n",
      "date 2020-07-31 open 35.84893572 volume 2407.0 当前持仓量 1867.0 当前持仓成本 38.75195688\n",
      "date 2020-08-03 open 36.38903268 volume 2828.0 当前持仓量 1867.0 当前持仓成本 38.75195688\n",
      "date 2020-08-04 open 36.99664176 volume 2650.0 当前持仓量 1867.0 当前持仓成本 38.75195688\n",
      "date 2020-08-05 open 36.92912964 volume 2373.0 当前持仓量 1867.0 当前持仓成本 38.75195688\n",
      "2020-08-06, SELL EXECUTED, ref:2701, Price: 36.4565, Size: -830.00, Remsize: -1037.00, Cost: 32164.1242, Stock: 600466.SH\n",
      "date 2020-08-06 open 36.456544799999996 volume 1661.0 当前持仓量 1037.0 当前持仓成本 38.75195688\n",
      "date 2020-08-07 open 36.18649632 volume 2560.0 当前持仓量 1037.0 当前持仓成本 38.75195688\n",
      "date 2020-08-10 open 35.64639936 volume 2836.0 当前持仓量 1037.0 当前持仓成本 38.75195688\n",
      "date 2020-08-11 open 36.456544799999996 volume 2837.0 当前持仓量 1037.0 当前持仓成本 38.75195688\n",
      "date 2020-08-12 open 35.781423600000004 volume 2212.0 当前持仓量 1037.0 当前持仓成本 38.75195688\n",
      "date 2020-08-13 open 35.98395996 volume 1535.0 当前持仓量 1037.0 当前持仓成本 38.75195688\n",
      "date 2020-08-14 open 36.05147208 volume 2583.0 当前持仓量 1037.0 当前持仓成本 38.75195688\n",
      "date 2020-08-17 open 36.99664176 volume 3992.0 当前持仓量 1037.0 当前持仓成本 38.75195688\n",
      "2020-08-18, SELL EXECUTED, ref:2702, Price: 37.6718, Size: -1037.00, Remsize: 0.00, Cost: 40185.7793, Stock: 600466.SH\n",
      "date 2020-08-18 open 37.67176296 volume 2847.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-08-19 open 36.99664176 volume 2167.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-08-20 open 36.456544799999996 volume 1346.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-08-21 open 36.59156904 volume 1248.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-08-24 open 36.65908116 volume 1731.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-08-25 open 36.65908116 volume 1498.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2020-08-26, BUY EXECUTED, ref:2703，Price: 36.3215, Size: 949.00, Remsize: 1051.00, Cost: 34469.1230, Stock: 600466.SH\n",
      "date 2020-08-26 open 36.32152056 volume 1898.0 当前持仓量 949.0 当前持仓成本 36.32152056\n",
      "date 2020-08-27 open 35.51137512 volume 1338.0 当前持仓量 949.0 当前持仓成本 36.32152056\n",
      "date 2020-08-28 open 35.781423600000004 volume 2201.0 当前持仓量 949.0 当前持仓成本 36.32152056\n",
      "date 2020-08-31 open 36.7941054 volume 3938.0 当前持仓量 949.0 当前持仓成本 36.32152056\n",
      "date 2020-09-01 open 37.131665999999996 volume 1440.0 当前持仓量 949.0 当前持仓成本 36.32152056\n",
      "date 2020-09-02 open 36.99664176 volume 1555.0 当前持仓量 949.0 当前持仓成本 36.32152056\n",
      "2020-09-03, SELL EXECUTED, ref:2704, Price: 36.8616, Size: -827.00, Remsize: -122.00, Cost: 30037.8975, Stock: 600466.SH\n",
      "date 2020-09-03 open 36.86161752 volume 1655.0 当前持仓量 122.0 当前持仓成本 36.32152056\n",
      "date 2020-09-04 open 35.91644784 volume 1600.0 当前持仓量 122.0 当前持仓成本 36.32152056\n",
      "date 2020-09-07 open 36.05147208 volume 2007.0 当前持仓量 122.0 当前持仓成本 36.32152056\n",
      "date 2020-09-08 open 35.781423600000004 volume 1493.0 当前持仓量 122.0 当前持仓成本 36.32152056\n",
      "date 2020-09-09 open 35.71391148 volume 2321.0 当前持仓量 122.0 当前持仓成本 36.32152056\n",
      "date 2020-09-10 open 36.456544799999996 volume 4996.0 当前持仓量 122.0 当前持仓成本 36.32152056\n",
      "date 2020-09-11 open 36.52405692 volume 2524.0 当前持仓量 122.0 当前持仓成本 36.32152056\n",
      "date 2020-09-14 open 36.38903268 volume 1938.0 当前持仓量 122.0 当前持仓成本 36.32152056\n",
      "date 2020-09-15 open 36.1189842 volume 1581.0 当前持仓量 122.0 当前持仓成本 36.32152056\n",
      "2020-09-16, SELL EXECUTED, ref:2705, Price: 36.3890, Size: -122.00, Remsize: 0.00, Cost: 4431.2255, Stock: 600466.SH\n",
      "date 2020-09-16 open 36.38903268 volume 6242.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-09-17 open 37.60425084 volume 3398.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-09-18 open 36.86161752 volume 5797.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-09-21 open 38.34688416 volume 3502.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-09-22 open 37.53673872 volume 2938.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-09-23 open 37.33420236 volume 2395.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-09-24 open 36.59156904 volume 2063.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-09-25 open 35.98395996 volume 3552.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2020-09-28, BUY EXECUTED, ref:2706，Price: 34.6337, Size: 1309.00, Remsize: 691.00, Cost: 45335.5363, Stock: 600466.SH\n",
      "date 2020-09-28 open 34.63371756 volume 2618.0 当前持仓量 1309.0 当前持仓成本 34.63371756\n",
      "date 2020-09-29 open 35.03879028 volume 2125.0 当前持仓量 1309.0 当前持仓成本 34.63371756\n",
      "date 2020-09-30 open 34.431181200000005 volume 1862.0 当前持仓量 1309.0 当前持仓成本 34.63371756\n",
      "date 2020-10-09 open 34.29615696 volume 1974.0 当前持仓量 1309.0 当前持仓成本 34.63371756\n",
      "date 2020-10-12 open 34.36366908 volume 3018.0 当前持仓量 1309.0 当前持仓成本 34.63371756\n",
      "date 2020-10-13 open 35.443863 volume 1575.0 当前持仓量 1309.0 当前持仓成本 34.63371756\n",
      "date 2020-10-14 open 34.90376604 volume 1711.0 当前持仓量 1309.0 当前持仓成本 34.63371756\n",
      "date 2020-10-15 open 34.70122968 volume 1337.0 当前持仓量 1309.0 当前持仓成本 34.63371756\n",
      "2020-10-16, SELL EXECUTED, ref:2707, Price: 34.4987, Size: -751.00, Remsize: -558.00, Cost: 26009.9219, Stock: 600466.SH\n",
      "date 2020-10-16 open 34.49869332 volume 1502.0 当前持仓量 558.0 当前持仓成本 34.63371756\n",
      "date 2020-10-19 open 34.83625392 volume 2197.0 当前持仓量 558.0 当前持仓成本 34.63371756\n",
      "date 2020-10-20 open 34.49869332 volume 1579.0 当前持仓量 558.0 当前持仓成本 34.63371756\n",
      "date 2020-10-21 open 34.29615696 volume 1303.0 当前持仓量 558.0 当前持仓成本 34.63371756\n",
      "date 2020-10-22 open 34.16113272 volume 1428.0 当前持仓量 558.0 当前持仓成本 34.63371756\n",
      "date 2020-10-23 open 34.49869332 volume 1241.0 当前持仓量 558.0 当前持仓成本 34.63371756\n",
      "date 2020-10-26 open 34.431181200000005 volume 1286.0 当前持仓量 558.0 当前持仓成本 34.63371756\n",
      "date 2020-10-27 open 34.0936206 volume 1612.0 当前持仓量 558.0 当前持仓成本 34.63371756\n",
      "date 2020-10-28 open 33.75606 volume 1191.0 当前持仓量 558.0 当前持仓成本 34.63371756\n",
      "date 2020-10-29 open 33.4184994 volume 1140.0 当前持仓量 558.0 当前持仓成本 34.63371756\n",
      "date 2020-10-30 open 33.62103576 volume 1415.0 当前持仓量 558.0 当前持仓成本 34.63371756\n",
      "date 2020-11-02 open 33.62103576 volume 2669.0 当前持仓量 558.0 当前持仓成本 34.63371756\n",
      "date 2020-11-03 open 34.02610848 volume 1709.0 当前持仓量 558.0 当前持仓成本 34.63371756\n",
      "date 2020-11-04 open 34.0936206 volume 1184.0 当前持仓量 558.0 当前持仓成本 34.63371756\n",
      "date 2020-11-05 open 33.82357212 volume 1589.0 当前持仓量 558.0 当前持仓成本 34.63371756\n",
      "date 2020-11-06 open 34.0936206 volume 1646.0 当前持仓量 558.0 当前持仓成本 34.63371756\n",
      "2020-11-09, SELL EXECUTED, ref:2708, Price: 34.2286, Size: -558.00, Remsize: 0.00, Cost: 19325.6144, Stock: 600466.SH\n",
      "date 2020-11-09 open 34.22864484 volume 2359.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-10 open 34.70122968 volume 2034.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-11 open 34.0936206 volume 2664.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-12 open 34.70122968 volume 1867.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-13 open 34.36366908 volume 2782.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-16 open 33.62103576 volume 1711.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-17 open 34.22864484 volume 4125.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-18 open 35.17381452 volume 2563.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-19 open 34.90376604 volume 1963.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-20 open 34.63371756 volume 1400.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-23 open 34.70122968 volume 2452.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-24 open 35.03879028 volume 1518.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-25 open 34.90376604 volume 1522.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-26 open 34.63371756 volume 1301.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-27 open 34.63371756 volume 1698.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-30 open 35.24132664 volume 4681.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2020-12-01, BUY EXECUTED, ref:2709，Price: 34.8363, Size: 1264.00, Remsize: 736.00, Cost: 44033.0250, Stock: 600466.SH\n",
      "date 2020-12-01 open 34.83625392 volume 2529.0 当前持仓量 1264.0 当前持仓成本 34.83625392\n",
      "2020-12-02, SELL EXECUTED, ref:2710, Price: 35.1063, Size: -1264.00, Remsize: 0.00, Cost: 44033.0250, Stock: 600466.SH\n",
      "date 2020-12-02 open 35.1063024 volume 2646.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-12-03 open 35.1063024 volume 2440.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-12-04 open 34.768741799999994 volume 2625.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2020-12-07, BUY EXECUTED, ref:2711，Price: 34.2962, Size: 1181.00, Remsize: 819.00, Cost: 40503.7614, Stock: 600466.SH\n",
      "date 2020-12-07 open 34.29615696 volume 2362.0 当前持仓量 1181.0 当前持仓成本 34.29615696\n",
      "date 2020-12-08 open 33.95859636 volume 1214.0 当前持仓量 1181.0 当前持仓成本 34.29615696\n",
      "date 2020-12-09 open 33.95859636 volume 1565.0 当前持仓量 1181.0 当前持仓成本 34.29615696\n",
      "date 2020-12-10 open 33.55352364 volume 1296.0 当前持仓量 1181.0 当前持仓成本 34.29615696\n",
      "date 2020-12-11 open 33.48601152 volume 1828.0 当前持仓量 1181.0 当前持仓成本 34.29615696\n",
      "date 2020-12-14 open 33.21596304 volume 1315.0 当前持仓量 1181.0 当前持仓成本 34.29615696\n",
      "date 2020-12-15 open 33.35098728 volume 1493.0 当前持仓量 1181.0 当前持仓成本 34.29615696\n",
      "date 2020-12-16 open 33.080938800000006 volume 1076.0 当前持仓量 1181.0 当前持仓成本 34.29615696\n",
      "date 2020-12-17 open 32.7433782 volume 1487.0 当前持仓量 1181.0 当前持仓成本 34.29615696\n",
      "date 2020-12-18 open 32.87840244 volume 1266.0 当前持仓量 1181.0 当前持仓成本 34.29615696\n",
      "date 2020-12-21 open 32.54084184 volume 1478.0 当前持仓量 1181.0 当前持仓成本 34.29615696\n",
      "date 2020-12-22 open 32.47332972 volume 1787.0 当前持仓量 1181.0 当前持仓成本 34.29615696\n",
      "date 2020-12-23 open 32.00074488 volume 1326.0 当前持仓量 1181.0 当前持仓成本 34.29615696\n",
      "date 2020-12-24 open 32.068257 volume 1817.0 当前持仓量 1181.0 当前持仓成本 34.29615696\n",
      "date 2020-12-25 open 31.12308732 volume 2496.0 当前持仓量 1181.0 当前持仓成本 34.29615696\n",
      "date 2020-12-28 open 31.25811156 volume 1956.0 当前持仓量 1181.0 当前持仓成本 34.29615696\n",
      "date 2020-12-29 open 31.12308732 volume 4017.0 当前持仓量 1181.0 当前持仓成本 34.29615696\n",
      "date 2020-12-30 open 31.46064792 volume 2559.0 当前持仓量 1181.0 当前持仓成本 34.29615696\n",
      "date 2020-12-31 open 31.25811156 volume 2026.0 当前持仓量 1181.0 当前持仓成本 34.29615696\n",
      "date 2021-01-04 open 31.19059944 volume 3688.0 当前持仓量 1181.0 当前持仓成本 34.29615696\n",
      "date 2021-01-05 open 29.90786916 volume 2510.0 当前持仓量 1181.0 当前持仓成本 34.29615696\n",
      "date 2021-01-06 open 30.0428934 volume 1625.0 当前持仓量 1181.0 当前持仓成本 34.29615696\n",
      "date 2021-01-07 open 30.0428934 volume 3147.0 当前持仓量 1181.0 当前持仓成本 34.29615696\n",
      "date 2021-01-08 open 29.705332799999997 volume 1449.0 当前持仓量 1181.0 当前持仓成本 34.29615696\n",
      "date 2021-01-11 open 29.97538128 volume 2552.0 当前持仓量 1181.0 当前持仓成本 34.29615696\n",
      "date 2021-01-12 open 29.63782068 volume 1209.0 当前持仓量 1181.0 当前持仓成本 34.29615696\n",
      "date 2021-01-13 open 29.57030856 volume 2069.0 当前持仓量 1181.0 当前持仓成本 34.29615696\n",
      "date 2021-01-14 open 29.84035704 volume 2466.0 当前持仓量 1181.0 当前持仓成本 34.29615696\n",
      "date 2021-01-15 open 30.380453999999997 volume 2073.0 当前持仓量 1181.0 当前持仓成本 34.29615696\n",
      "2021-01-18, SELL EXECUTED, ref:2712, Price: 30.3805, Size: -1143.00, Remsize: -38.00, Cost: 39200.5074, Stock: 600466.SH\n",
      "date 2021-01-18 open 30.380453999999997 volume 2287.0 当前持仓量 38.0 当前持仓成本 34.29615696\n",
      "date 2021-01-19 open 30.380453999999997 volume 3960.0 当前持仓量 38.0 当前持仓成本 34.29615696\n",
      "date 2021-01-20 open 31.055575199999996 volume 2158.0 当前持仓量 38.0 当前持仓成本 34.29615696\n",
      "date 2021-01-21 open 30.51547824 volume 1793.0 当前持仓量 38.0 当前持仓成本 34.29615696\n",
      "date 2021-01-22 open 30.24542976 volume 1718.0 当前持仓量 38.0 当前持仓成本 34.29615696\n",
      "date 2021-01-25 open 29.57030856 volume 2364.0 当前持仓量 38.0 当前持仓成本 34.29615696\n",
      "date 2021-01-26 open 28.96269948 volume 996.0 当前持仓量 38.0 当前持仓成本 34.29615696\n",
      "date 2021-01-27 open 28.76016312 volume 1292.0 当前持仓量 38.0 当前持仓成本 34.29615696\n",
      "date 2021-01-28 open 28.82767524 volume 1282.0 当前持仓量 38.0 当前持仓成本 34.29615696\n"
     ]
    }
   ],
   "source": [
    "class TestStrategy(bt.Strategy):\n",
    "  \n",
    "    params=(('period1',5),\n",
    "            ('period2',10),)   #全局设定均线周期\n",
    "    \n",
    "    def log(self, txt, dt=None):\n",
    "        ''' Logging function fot this strategy'''\n",
    "        dt = dt or self.datas[0].datetime.date(0)\n",
    "        print('%s, %s' % (dt.isoformat(), txt))\n",
    "    \n",
    "    def __init__(self):\n",
    "        #计算均线\n",
    "        self.ma1 = bt.indicators.SMA(self.data0, period=self.p.period1)\n",
    "        self.ma2 = bt.indicators.SMA(self.data0, period=self.p.period2)\n",
    "        #计算2条均线交叉信号：ma2 上穿 ma1 时，取值为 +1； ma2 下穿 ma1 时，取值为 -1\n",
    "        self.crossover = bt.indicators.CrossOver(self.ma2, self.ma1) \n",
    "        # 初始化订单\n",
    "        self.order = None\n",
    "        \n",
    "    def next(self):\n",
    "         # 打印日志\n",
    "       \n",
    "        print('date', self.datas[0].datetime.date(0),\n",
    "              'open', self.data0.open[0],\n",
    "              'volume', self.data0.volume[0],\n",
    "              '当前持仓量', self.broker.getposition(self.data).size,\n",
    "              '当前持仓成本', self.broker.getposition(self.data).price)\n",
    "    \n",
    "        # 取消之前未执行的订单\n",
    "        if self.order:  \n",
    "            self.cancel(self.order)  \n",
    "        \n",
    "        # 检查是否有持仓\n",
    "        if not self.position:  \n",
    "            # 10日均线上穿5日均线，买入\n",
    "            if self.crossover > 0:             \n",
    "                self.order = self.buy(size=2000) # 以下一日开盘价买入2000股\n",
    "        # # 10日均线下穿5日均线，卖出\n",
    "        elif self.crossover < 0:            \n",
    "            self.order = self.close() # 平仓，以下一日开盘价卖出\n",
    "            \n",
    "    \n",
    "    def notify_order(self, order):\n",
    "        # 未被处理的订单\n",
    "        if order.status in [order.Created, order.Submitted, order.Accepted, order.Canceled, order.Margin]:\n",
    "            return\n",
    "        # 已被处理的订单\n",
    "        if order.status in [order.Partial, order.Completed]:\n",
    "            if order.isbuy():\n",
    "                self.log(\n",
    "                    'BUY EXECUTED, ref:%.0f，Price: %.4f, Size: %.2f, Remsize: %.2f, Cost: %.4f, Stock: %s' %\n",
    "                    (order.ref,\n",
    "                     order.executed.price,\n",
    "                     order.executed.size,\n",
    "                     order.executed.remsize, # 剩余 数量\n",
    "                     order.executed.value,\n",
    "                     order.data._name))\n",
    "            else:  # Sell\n",
    "                self.log('SELL EXECUTED, ref:%.0f, Price: %.4f, Size: %.2f, Remsize: %.2f, Cost: %.4f, Stock: %s' %\n",
    "                        (order.ref,\n",
    "                        order.executed.price,\n",
    "                         order.executed.size,\n",
    "                         order.executed.remsize, # 剩余 数量\n",
    "                        order.executed.value,\n",
    "                        order.data._name))\n",
    "                \n",
    "# 实例化大脑\n",
    "cerebro1 = bt.Cerebro()\n",
    "# 设置初始资金\n",
    "cerebro1.broker.set_cash(1000000)\n",
    "# 设置成交量限制\n",
    "cerebro1.broker.set_filler(bt.broker.fillers.FixedBarPerc(perc=50))  # 表示 50% \n",
    "# cerebro6.broker.set_filler(bt.broker.fillers.BarPointPerc(minmov=0.1, perc=0.5))\n",
    "# 加载数据\n",
    "datafeed1 = bt.feeds.PandasData(dataname=data1_, fromdate=datetime.datetime(2019,1,2), todate=datetime.datetime(2021,1,28))\n",
    "cerebro1.adddata(datafeed1, name='600466.SH')\n",
    "# 添加策略\n",
    "cerebro1.addstrategy(TestStrategy)            \n",
    "# 启动回测\n",
    "result = cerebro1.run()  "
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## bt.broker.fillers.BarPointPerc(minmov=0.01，perc=100.0)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 99,
   "metadata": {
    "collapsed": true,
    "jupyter": {
     "outputs_hidden": true
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "date 2019-01-16 open 33.00320305 high 33.00320305 low 32.57138544 volume 660.0 当前持仓量 0 当前持仓成本 0.0\n",
      "2019-01-17, BUY EXECUTED, ref:2560，Price: 32.6331, Size: 36.00, Remsize: 964.00, Cost: 1174.7907, Stock: 600466.SH\n",
      "date 2019-01-17 open 32.63307367 high 32.94151482 low 31.83112668 volume 869.0 当前持仓量 36.0 当前持仓成本 32.63307367\n",
      "date 2019-01-18 open 31.95450314 high 32.81813836 low 31.95450314 volume 890.0 当前持仓量 36.0 当前持仓成本 32.63307367\n",
      "date 2019-01-21 open 33.06489128 high 33.06489128 low 32.0778796 volume 1292.0 当前持仓量 36.0 当前持仓成本 32.63307367\n",
      "date 2019-01-22 open 32.38632075 high 32.6947619 low 32.01619137 volume 1030.0 当前持仓量 36.0 当前持仓成本 32.63307367\n",
      "date 2019-01-23 open 32.44800898 high 32.57138544 low 32.0778796 volume 421.0 当前持仓量 36.0 当前持仓成本 32.63307367\n",
      "date 2019-01-24 open 32.50969721 high 32.57138544 low 31.89281491 volume 615.0 当前持仓量 36.0 当前持仓成本 32.63307367\n",
      "date 2019-01-25 open 32.94151482 high 34.05190296 low 32.75645013 volume 1732.0 当前持仓量 36.0 当前持仓成本 32.63307367\n",
      "date 2019-01-28 open 33.311644199999996 high 34.29865588 low 32.87982659 volume 1686.0 当前持仓量 36.0 当前持仓成本 32.63307367\n",
      "2019-01-29, SELL EXECUTED, ref:2561, Price: 33.9285, Size: -36.00, Remsize: 0.00, Cost: 1174.7907, Stock: 600466.SH\n",
      "date 2019-01-29 open 33.928526500000004 high 35.03891464 low 33.62008535 volume 2256.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-01-30 open 34.66878526 high 35.40904402 low 33.80515004 volume 1910.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-01-31 open 34.60709703 high 35.22397933 low 33.99021473 volume 1423.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-02-01 open 34.66878526 high 35.03891464 low 34.36034411 volume 1154.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-02-11 open 34.73047349 high 35.96423809 low 34.73047349 volume 1681.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-02-12 open 35.65579694 high 35.96423809 low 35.03891464 volume 1337.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-02-13 open 35.65579694 high 36.95124977 low 35.28566756 volume 1926.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-02-14 open 36.14930278 high 36.45774393 low 35.84086163 volume 1199.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-02-15 open 35.96423809 high 36.21099101 low 34.91553818 volume 1603.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-02-18 open 34.97722641 high 36.02592632 low 34.85384995 volume 1879.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-02-19 open 35.96423809 high 36.14930278 low 34.5454088 volume 2353.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-02-20 open 35.162291100000004 high 35.71748517 low 34.79216172 volume 1307.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-02-21 open 35.47073225 high 35.71748517 low 34.42203234 volume 2012.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2019-02-22, BUY EXECUTED, ref:2562，Price: 34.9155, Size: 101.00, Remsize: 899.00, Cost: 3526.4694, Stock: 600466.SH\n",
      "date 2019-02-22 open 34.91553818 high 35.28566756 low 34.5454088 volume 1627.0 当前持仓量 101.0 当前持仓成本 34.91553818\n",
      "date 2019-02-25 open 35.28566756 high 37.32137915 low 35.28566756 volume 4040.0 当前持仓量 101.0 当前持仓成本 34.91553818\n",
      "date 2019-02-26 open 37.07462623 high 38.98696136 low 37.07462623 volume 4618.0 当前持仓量 101.0 当前持仓成本 34.91553818\n",
      "2019-02-27, SELL EXECUTED, ref:2563, Price: 37.5064, Size: -101.00, Remsize: 0.00, Cost: 3526.4694, Stock: 600466.SH\n",
      "date 2019-02-27 open 37.50644384 high 38.98696136 low 37.50644384 volume 5057.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-02-28 open 38.8635849 high 39.17202605 low 37.99994968 volume 3035.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-01 open 38.67852021 high 38.92527313 low 38.18501437 volume 2077.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-04 open 38.98696136 high 40.52916711 low 38.74020844 volume 5810.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-05 open 40.40579065 high 42.37981401 low 40.0973495 volume 6177.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-06 open 42.31812578 high 42.87331985 low 40.59085534 volume 4708.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-07 open 41.82461994 high 42.19474932 low 40.96098472 volume 3079.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-08 open 40.65254357 high 40.89929649 low 38.55514375 volume 4343.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-11 open 38.37007906 high 39.41877897 low 37.93826145 volume 2838.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-12 open 39.60384366 high 41.45449056 low 39.54215543 volume 3685.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-13 open 40.59085534 high 43.05838454 low 40.15903773 volume 6624.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-14 open 41.82461994 high 43.36682569 low 40.7142318 volume 3063.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2019-03-15, BUY EXECUTED, ref:2564，Price: 41.2077, Size: 88.00, Remsize: 912.00, Cost: 3626.2809, Stock: 600466.SH\n",
      "date 2019-03-15 open 41.20773764 high 43.36682569 low 41.08436118 volume 4078.0 当前持仓量 88.0 当前持仓成本 41.20773764\n",
      "2019-03-18, SELL EXECUTED, ref:2565, Price: 44.1071, Size: -88.00, Remsize: 0.00, Cost: 3626.2809, Stock: 600466.SH\n",
      "date 2019-03-18 open 44.10708445 high 44.60059029 low 42.00968463 volume 8309.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-19 open 44.97071967 high 46.57461365 low 44.23046091 volume 5514.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-20 open 44.4155256 high 45.15578436 low 43.30513746 volume 4068.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-21 open 45.21747259 high 47.25318418 low 45.21747259 volume 5531.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-22 open 46.14279604 high 46.57461365 low 44.66227852 volume 2858.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-25 open 45.032407899999995 high 47.06811949 low 44.78565498 volume 3569.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-26 open 45.89604312 high 46.266172499999996 low 44.29214914 volume 2884.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-27 open 44.84734321 high 45.71097843 low 44.10708445 volume 2500.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-28 open 45.21747259 high 45.52591374 low 42.31812578 volume 5090.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-03-29 open 43.55189038 high 45.83435489 low 42.87331985 volume 4446.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2019-04-01, BUY EXECUTED, ref:2566，Price: 46.1428, Size: 77.00, Remsize: 923.00, Cost: 3552.9953, Stock: 600466.SH\n",
      "date 2019-04-01 open 46.14279604 high 49.96746629999999 low 46.14279604 volume 6032.0 当前持仓量 77.0 当前持仓成本 46.14279604\n",
      "date 2019-04-02 open 48.1168194 high 48.98045462 low 47.25318418 volume 3281.0 当前持仓量 77.0 当前持仓成本 46.14279604\n",
      "2019-04-03, SELL EXECUTED, ref:2567, Price: 47.0681, Size: -77.00, Remsize: 0.00, Cost: 3552.9953, Stock: 600466.SH\n",
      "date 2019-04-03 open 47.06811949 high 49.16551931 low 46.8830548 volume 3826.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-04-04 open 48.17850763 high 48.733701700000005 low 47.43824887 volume 3770.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-04-08 open 48.61032524 high 49.04214285 low 46.63630188 volume 3428.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-04-09 open 47.93175471 high 52.24993081 low 47.93175471 volume 8635.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-04-10 open 51.2012309 high 52.00317789 low 50.09084276 volume 5462.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-04-11 open 50.584348600000006 high 50.70772506 low 47.68500179 volume 4631.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-04-12 open 48.733701700000005 high 49.59733692 low 47.93175471 volume 2203.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-04-15 open 49.47396046 high 50.39928391 low 47.93175471 volume 2910.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-04-16 open 47.56162533 high 47.56162533 low 44.10708445 volume 5789.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2019-04-17, BUY EXECUTED, ref:2568，Price: 46.6363, Size: 124.00, Remsize: 876.00, Cost: 5782.9014, Stock: 600466.SH\n",
      "date 2019-04-17 open 46.63630188 high 46.82136657 low 44.90903144 volume 4998.0 当前持仓量 124.0 当前持仓成本 46.63630188\n",
      "date 2019-04-18 open 46.08110781 high 46.20448427 low 44.72396675 volume 3132.0 当前持仓量 124.0 当前持仓成本 46.63630188\n",
      "date 2019-04-19 open 45.032407899999995 high 45.83435489 low 44.47721383 volume 2465.0 当前持仓量 124.0 当前持仓成本 46.63630188\n",
      "date 2019-04-22 open 44.16877268 high 44.66227852 low 42.44150224 volume 4922.0 当前持仓量 124.0 当前持仓成本 46.63630188\n",
      "date 2019-04-23 open 43.05838454 high 43.49020215 low 42.62656693 volume 2841.0 当前持仓量 124.0 当前持仓成本 46.63630188\n",
      "date 2019-04-24 open 43.181761 high 43.24344923 low 42.13306109 volume 2276.0 当前持仓量 124.0 当前持仓成本 46.63630188\n",
      "date 2019-04-25 open 42.99669631 high 44.04539622 low 42.5648787 volume 2722.0 当前持仓量 124.0 当前持仓成本 46.63630188\n",
      "date 2019-04-26 open 42.44150224 high 43.67526684 low 42.25643755 volume 2044.0 当前持仓量 124.0 当前持仓成本 46.63630188\n",
      "date 2019-04-29 open 43.49020215 high 44.16877268 low 42.93500808 volume 2603.0 当前持仓量 124.0 当前持仓成本 46.63630188\n",
      "date 2019-04-30 open 43.55189038 high 43.798643299999995 low 42.44150224 volume 2689.0 当前持仓量 124.0 当前持仓成本 46.63630188\n",
      "date 2019-05-06 open 41.26942587 high 41.26942587 low 38.61683198 volume 4283.0 当前持仓量 124.0 当前持仓成本 46.63630188\n",
      "date 2019-05-07 open 39.41877897 high 40.28241419 low 38.80189667 volume 3272.0 当前持仓量 124.0 当前持仓成本 46.63630188\n",
      "date 2019-05-08 open 39.64500182 high 40.99434548 low 39.00245722 volume 2137.0 当前持仓量 124.0 当前持仓成本 46.63630188\n",
      "date 2019-05-09 open 40.99434548 high 41.18710886 low 38.873948299999995 volume 3019.0 当前持仓量 124.0 当前持仓成本 46.63630188\n",
      "date 2019-05-10 open 39.96627412 high 41.25136332 low 38.74543938 volume 3810.0 当前持仓量 124.0 当前持仓成本 46.63630188\n",
      "date 2019-05-13 open 40.28754642 high 40.35180088 low 39.38798398 volume 1723.0 当前持仓量 124.0 当前持仓成本 46.63630188\n",
      "date 2019-05-14 open 39.5164929 high 40.09478304 low 39.45223844 volume 1612.0 当前持仓量 124.0 当前持仓成本 46.63630188\n",
      "date 2019-05-15 open 39.8377652 high 40.67307318 low 39.64500182 volume 2096.0 当前持仓量 124.0 当前持仓成本 46.63630188\n",
      "date 2019-05-16 open 40.35180088 high 40.67307318 low 40.09478304 volume 1424.0 当前持仓量 124.0 当前持仓成本 46.63630188\n",
      "date 2019-05-17 open 40.93009102 high 42.27943468 low 39.70925628 volume 2470.0 当前持仓量 124.0 当前持仓成本 46.63630188\n",
      "2019-05-20, SELL EXECUTED, ref:2569, Price: 39.7735, Size: -56.00, Remsize: -68.00, Cost: 2611.6329, Stock: 600466.SH\n",
      "date 2019-05-20 open 39.77351074 high 39.96627412 low 38.48842154 volume 1686.0 当前持仓量 68.0 当前持仓成本 46.63630188\n",
      "date 2019-05-21 open 39.25947506 high 40.54456426 low 39.1952206 volume 1921.0 当前持仓量 68.0 当前持仓成本 46.63630188\n",
      "date 2019-05-22 open 39.96627412 high 40.1590375 low 39.00245722 volume 1990.0 当前持仓量 68.0 当前持仓成本 46.63630188\n",
      "date 2019-05-23 open 39.32372952 high 39.32372952 low 38.35991262 volume 1544.0 当前持仓量 68.0 当前持仓成本 46.63630188\n",
      "date 2019-05-24 open 38.61693046 high 38.93820276 low 37.01056896 volume 1794.0 当前持仓量 68.0 当前持仓成本 46.63630188\n",
      "date 2019-05-27 open 37.71736802 high 38.80969384 low 37.2675868 volume 2244.0 当前持仓量 68.0 当前持仓成本 46.63630188\n",
      "date 2019-05-28 open 38.552676 high 38.93820276 low 38.2314037 volume 1760.0 当前持仓量 68.0 当前持仓成本 46.63630188\n",
      "date 2019-05-29 open 38.35991262 high 38.552676 low 37.71736802 volume 1912.0 当前持仓量 68.0 当前持仓成本 46.63630188\n",
      "date 2019-05-30 open 37.65311356 high 38.29565816 low 37.2675868 volume 1158.0 当前持仓量 68.0 当前持仓成本 46.63630188\n",
      "date 2019-05-31 open 38.10289478 high 38.2314037 low 37.33184126 volume 1568.0 当前持仓量 68.0 当前持仓成本 46.63630188\n",
      "date 2019-06-03 open 37.78162248 high 38.42416708 low 37.46035018 volume 1421.0 当前持仓量 68.0 当前持仓成本 46.63630188\n",
      "date 2019-06-04 open 37.71736802 high 37.71736802 low 36.49653328 volume 1777.0 当前持仓量 68.0 当前持仓成本 46.63630188\n",
      "date 2019-06-05 open 37.07482342 high 38.35991262 low 36.81780558 volume 3116.0 当前持仓量 68.0 当前持仓成本 46.63630188\n",
      "date 2019-06-06 open 37.65311356 high 37.71736802 low 36.43227882 volume 1417.0 当前持仓量 68.0 当前持仓成本 46.63630188\n",
      "date 2019-06-10 open 36.9463145 high 38.10289478 low 36.43227882 volume 3058.0 当前持仓量 68.0 当前持仓成本 46.63630188\n",
      "date 2019-06-11 open 38.48842154 high 40.28754642 low 38.42416708 volume 4038.0 当前持仓量 68.0 当前持仓成本 46.63630188\n",
      "date 2019-06-12 open 39.90201966 high 40.54456426 low 39.70925628 volume 1785.0 当前持仓量 68.0 当前持仓成本 46.63630188\n",
      "2019-06-13, SELL EXECUTED, ref:2570, Price: 40.0948, Size: -61.00, Remsize: -7.00, Cost: 2844.8144, Stock: 600466.SH\n",
      "date 2019-06-13 open 40.09478304 high 40.41605534 low 39.1952206 volume 1605.0 当前持仓量 7.0 当前持仓成本 46.63630188\n",
      "date 2019-06-14 open 40.1590375 high 42.02241684 low 40.09478304 volume 4020.0 当前持仓量 7.0 当前持仓成本 46.63630188\n",
      "date 2019-06-17 open 40.93009102 high 41.765399 low 40.09478304 volume 1793.0 当前持仓量 7.0 当前持仓成本 46.63630188\n",
      "date 2019-06-18 open 40.41605534 high 40.60881872 low 39.64500182 volume 1363.0 当前持仓量 7.0 当前持仓成本 46.63630188\n",
      "date 2019-06-19 open 41.05859994 high 41.50838116 low 40.09478304 volume 1910.0 当前持仓量 7.0 当前持仓成本 46.63630188\n",
      "date 2019-06-20 open 40.35180088 high 41.95816238 low 40.03052858 volume 1901.0 当前持仓量 7.0 当前持仓成本 46.63630188\n",
      "date 2019-06-21 open 41.25136332 high 41.89390792 low 40.86583656 volume 1853.0 当前持仓量 7.0 当前持仓成本 46.63630188\n",
      "date 2019-06-24 open 41.25136332 high 41.57263562 low 40.93009102 volume 1459.0 当前持仓量 7.0 当前持仓成本 46.63630188\n",
      "date 2019-06-25 open 41.50838116 high 41.57263562 low 39.8377652 volume 1512.0 当前持仓量 7.0 当前持仓成本 46.63630188\n",
      "date 2019-06-26 open 40.4803098 high 41.18710886 low 39.1952206 volume 1326.0 当前持仓量 7.0 当前持仓成本 46.63630188\n",
      "date 2019-06-27 open 40.99434548 high 41.25136332 low 40.41605534 volume 1422.0 当前持仓量 7.0 当前持仓成本 46.63630188\n",
      "date 2019-06-28 open 40.93009102 high 40.93009102 low 39.70925628 volume 1404.0 当前持仓量 7.0 当前持仓成本 46.63630188\n",
      "date 2019-07-01 open 40.4803098 high 41.18710886 low 39.90201966 volume 2632.0 当前持仓量 7.0 当前持仓成本 46.63630188\n",
      "date 2019-07-02 open 40.4803098 high 40.54456426 low 39.70925628 volume 2620.0 当前持仓量 7.0 当前持仓成本 46.63630188\n",
      "date 2019-07-03 open 39.96627412 high 42.0866713 low 39.90201966 volume 3601.0 当前持仓量 7.0 当前持仓成本 46.63630188\n",
      "date 2019-07-04 open 40.99434548 high 43.11474266 low 40.93009102 volume 3978.0 当前持仓量 7.0 当前持仓成本 46.63630188\n",
      "date 2019-07-05 open 41.765399 high 42.92197928 low 40.99434548 volume 2579.0 当前持仓量 7.0 当前持仓成本 46.63630188\n",
      "2019-07-08, SELL EXECUTED, ref:2571, Price: 40.9301, Size: -7.00, Remsize: 0.00, Cost: 326.4541, Stock: 600466.SH\n",
      "date 2019-07-08 open 40.93009102 high 41.1228544 low 39.32372952 volume 2822.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-07-09 open 39.38798398 high 40.1590375 low 39.32372952 volume 1476.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-07-10 open 39.8377652 high 39.90201966 low 37.52460464 volume 3845.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2019-07-11, BUY EXECUTED, ref:2572，Price: 38.4884, Size: 140.00, Remsize: 860.00, Cost: 5388.3790, Stock: 600466.SH\n",
      "date 2019-07-11 open 38.48842154 high 40.09478304 low 38.42416708 volume 4787.0 当前持仓量 140.0 当前持仓成本 38.48842154\n",
      "date 2019-07-12 open 39.64500182 high 40.22329196 low 39.25947506 volume 2275.0 当前持仓量 140.0 当前持仓成本 38.48842154\n",
      "date 2019-07-15 open 39.58074736 high 40.67307318 low 38.873948299999995 volume 3680.0 当前持仓量 140.0 当前持仓成本 38.48842154\n",
      "date 2019-07-16 open 40.4803098 high 41.444126700000005 low 40.35180088 volume 2541.0 当前持仓量 140.0 当前持仓成本 38.48842154\n",
      "date 2019-07-17 open 41.444126700000005 high 41.89390792 low 40.86583656 volume 2703.0 当前持仓量 140.0 当前持仓成本 38.48842154\n",
      "2019-07-18, SELL EXECUTED, ref:2573, Price: 41.1871, Size: -119.00, Remsize: -21.00, Cost: 4580.1222, Stock: 600466.SH\n",
      "date 2019-07-18 open 41.18710886 high 41.25136332 low 39.90201966 volume 3357.0 当前持仓量 21.0 当前持仓成本 38.48842154\n",
      "date 2019-07-19 open 40.60881872 high 41.95816238 low 40.54456426 volume 3478.0 当前持仓量 21.0 当前持仓成本 38.48842154\n",
      "date 2019-07-22 open 41.89390792 high 41.89390792 low 40.4803098 volume 2564.0 当前持仓量 21.0 当前持仓成本 38.48842154\n",
      "date 2019-07-23 open 41.70114454 high 41.95816238 low 40.09478304 volume 2857.0 当前持仓量 21.0 当前持仓成本 38.48842154\n",
      "date 2019-07-24 open 40.93009102 high 40.93009102 low 40.22329196 volume 3005.0 当前持仓量 21.0 当前持仓成本 38.48842154\n",
      "date 2019-07-25 open 40.54456426 high 40.60881872 low 39.38798398 volume 3082.0 当前持仓量 21.0 当前持仓成本 38.48842154\n",
      "date 2019-07-26 open 40.03052858 high 41.05859994 low 39.8377652 volume 2685.0 当前持仓量 21.0 当前持仓成本 38.48842154\n",
      "date 2019-07-29 open 41.25136332 high 41.37987224 low 40.09478304 volume 2451.0 当前持仓量 21.0 当前持仓成本 38.48842154\n",
      "date 2019-07-30 open 40.1590375 high 40.8015821 low 40.1590375 volume 1885.0 当前持仓量 21.0 当前持仓成本 38.48842154\n",
      "date 2019-07-31 open 40.09478304 high 40.09478304 low 39.06671168 volume 3480.0 当前持仓量 21.0 当前持仓成本 38.48842154\n",
      "date 2019-08-01 open 39.1952206 high 39.25947506 low 38.2314037 volume 2475.0 当前持仓量 21.0 当前持仓成本 38.48842154\n",
      "date 2019-08-02 open 37.5888591 high 38.03864032 low 36.81780558 volume 2944.0 当前持仓量 21.0 当前持仓成本 38.48842154\n",
      "date 2019-08-05 open 37.13907788 high 37.33184126 low 36.75355112 volume 1926.0 当前持仓量 21.0 当前持仓成本 38.48842154\n",
      "date 2019-08-06 open 36.11100652 high 37.52460464 low 35.85398868 volume 2587.0 当前持仓量 21.0 当前持仓成本 38.48842154\n",
      "date 2019-08-07 open 37.39609572 high 37.65311356 low 36.75355112 volume 1978.0 当前持仓量 21.0 当前持仓成本 38.48842154\n",
      "date 2019-08-08 open 37.5888591 high 37.71736802 low 36.9463145 volume 1299.0 当前持仓量 21.0 当前持仓成本 38.48842154\n",
      "date 2019-08-09 open 37.2675868 high 37.46035018 low 36.3037699 volume 1690.0 当前持仓量 21.0 当前持仓成本 38.48842154\n",
      "date 2019-08-12 open 36.49653328 high 37.01056896 low 36.36802436 volume 1166.0 当前持仓量 21.0 当前持仓成本 38.48842154\n",
      "date 2019-08-13 open 36.75355112 high 36.75355112 low 36.04675206 volume 996.0 当前持仓量 21.0 当前持仓成本 38.48842154\n",
      "date 2019-08-14 open 36.88206004 high 37.07482342 low 36.23951544 volume 966.0 当前持仓量 21.0 当前持仓成本 38.48842154\n",
      "date 2019-08-15 open 35.6612253 high 36.68929666 low 35.339953 volume 1165.0 当前持仓量 21.0 当前持仓成本 38.48842154\n",
      "date 2019-08-16 open 36.6250422 high 36.9463145 low 36.17526098 volume 1412.0 当前持仓量 21.0 当前持仓成本 38.48842154\n",
      "date 2019-08-19 open 36.56078774 high 37.910131400000004 low 36.36802436 volume 1936.0 当前持仓量 21.0 当前持仓成本 38.48842154\n",
      "date 2019-08-20 open 37.910131400000004 high 38.2314037 low 37.5888591 volume 1446.0 当前持仓量 21.0 当前持仓成本 38.48842154\n",
      "2019-08-21, SELL EXECUTED, ref:2574, Price: 37.8459, Size: -21.00, Remsize: 0.00, Cost: 808.2569, Stock: 600466.SH\n",
      "date 2019-08-21 open 37.84587694 high 38.80969384 low 37.78162248 volume 1448.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-08-22 open 38.74543938 high 38.93820276 low 38.48842154 volume 1163.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-08-23 open 39.13096614 high 39.70925628 low 38.93820276 volume 3117.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-08-26 open 39.25947506 high 39.77351074 low 38.68118492 volume 1971.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-08-27 open 39.32372952 high 39.77351074 low 38.74543938 volume 1953.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-08-28 open 38.93820276 high 39.1952206 low 38.35991262 volume 1607.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-08-29 open 39.13096614 high 39.25947506 low 37.5888591 volume 2368.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-08-30 open 38.29565816 high 38.29565816 low 36.49653328 volume 2230.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2019-09-02, BUY EXECUTED, ref:2575，Price: 36.6893, Size: 118.00, Remsize: 882.00, Cost: 4329.3370, Stock: 600466.SH\n",
      "date 2019-09-02 open 36.68929666 high 37.2675868 low 36.3037699 volume 2373.0 当前持仓量 118.0 当前持仓成本 36.68929666\n",
      "date 2019-09-03 open 37.33184126 high 37.33184126 low 36.75355112 volume 1505.0 当前持仓量 118.0 当前持仓成本 36.68929666\n",
      "date 2019-09-04 open 36.88206004 high 38.42416708 low 36.75355112 volume 2749.0 当前持仓量 118.0 当前持仓成本 36.68929666\n",
      "date 2019-09-05 open 38.74543938 high 39.5164929 low 38.552676 volume 2726.0 当前持仓量 118.0 当前持仓成本 36.68929666\n",
      "date 2019-09-06 open 39.1952206 high 39.45223844 low 38.74543938 volume 1786.0 当前持仓量 118.0 当前持仓成本 36.68929666\n",
      "date 2019-09-09 open 39.58074736 high 39.90201966 low 39.32372952 volume 2054.0 当前持仓量 118.0 当前持仓成本 36.68929666\n",
      "2019-09-10, SELL EXECUTED, ref:2576, Price: 39.5807, Size: -72.00, Remsize: -46.00, Cost: 2641.6294, Stock: 600466.SH\n",
      "date 2019-09-10 open 39.58074736 high 39.77351074 low 38.873948299999995 volume 1300.0 当前持仓量 46.0 当前持仓成本 36.68929666\n",
      "date 2019-09-11 open 39.06671168 high 39.38798398 low 38.61693046 volume 1379.0 当前持仓量 46.0 当前持仓成本 36.68929666\n",
      "date 2019-09-12 open 39.13096614 high 40.8015821 low 39.13096614 volume 4112.0 当前持仓量 46.0 当前持仓成本 36.68929666\n",
      "date 2019-09-16 open 40.8015821 high 41.25136332 low 40.28754642 volume 2674.0 当前持仓量 46.0 当前持仓成本 36.68929666\n",
      "date 2019-09-17 open 40.54456426 high 40.8015821 low 39.90201966 volume 1741.0 当前持仓量 46.0 当前持仓成本 36.68929666\n",
      "date 2019-09-18 open 40.28754642 high 41.37987224 low 39.96627412 volume 2315.0 当前持仓量 46.0 当前持仓成本 36.68929666\n",
      "date 2019-09-19 open 41.1228544 high 41.37987224 low 40.28754642 volume 2477.0 当前持仓量 46.0 当前持仓成本 36.68929666\n",
      "date 2019-09-20 open 40.4803098 high 40.86583656 low 40.1590375 volume 1456.0 当前持仓量 46.0 当前持仓成本 36.68929666\n",
      "date 2019-09-23 open 40.4803098 high 40.54456426 low 39.13096614 volume 1499.0 当前持仓量 46.0 当前持仓成本 36.68929666\n",
      "date 2019-09-24 open 39.64500182 high 39.77351074 low 38.80969384 volume 1575.0 当前持仓量 46.0 当前持仓成本 36.68929666\n",
      "date 2019-09-25 open 39.45223844 high 40.03052858 low 39.06671168 volume 1566.0 当前持仓量 46.0 当前持仓成本 36.68929666\n",
      "date 2019-09-26 open 39.58074736 high 39.96627412 low 38.93820276 volume 1797.0 当前持仓量 46.0 当前持仓成本 36.68929666\n",
      "date 2019-09-27 open 39.38798398 high 39.38798398 low 38.48842154 volume 1877.0 当前持仓量 46.0 当前持仓成本 36.68929666\n",
      "date 2019-09-30 open 38.552676 high 39.25947506 low 38.48842154 volume 1200.0 当前持仓量 46.0 当前持仓成本 36.68929666\n",
      "date 2019-10-08 open 39.13096614 high 40.99434548 low 38.48842154 volume 3249.0 当前持仓量 46.0 当前持仓成本 36.68929666\n",
      "date 2019-10-09 open 40.22329196 high 41.82965346 low 40.09478304 volume 3859.0 当前持仓量 46.0 当前持仓成本 36.68929666\n",
      "date 2019-10-10 open 41.57263562 high 42.98623374 low 41.31561778 volume 3732.0 当前持仓量 46.0 当前持仓成本 36.68929666\n",
      "2019-10-11, SELL EXECUTED, ref:2577, Price: 43.0505, Size: -46.00, Remsize: 0.00, Cost: 1687.7076, Stock: 600466.SH\n",
      "date 2019-10-11 open 43.050488200000004 high 43.17899712 low 41.89390792 volume 2498.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-10-14 open 43.11474266 high 45.81342998 low 42.92197928 volume 4972.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-10-15 open 44.46408632 high 45.74917552 low 44.20706848 volume 4407.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-10-16 open 45.74917552 high 48.06233608 low 45.10663092 volume 4333.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-10-17 open 46.2632112 high 46.2632112 low 44.6568497 volume 4711.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-10-18 open 45.9419389 high 45.9419389 low 41.31561778 volume 6712.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-10-21 open 42.407943599999996 high 44.0143051 low 41.765399 volume 4252.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-10-22 open 42.7292159 high 43.17899712 low 41.765399 volume 2510.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-10-23 open 42.15092576 high 42.27943468 low 40.99434548 volume 2294.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2019-10-24, BUY EXECUTED, ref:2578，Price: 41.3799, Size: 97.00, Remsize: 903.00, Cost: 4013.8476, Stock: 600466.SH\n",
      "date 2019-10-24 open 41.37987224 high 42.0866713 low 41.05859994 volume 2135.0 当前持仓量 97.0 当前持仓成本 41.37987224\n",
      "date 2019-10-25 open 42.27943468 high 43.43601496 low 41.82965346 volume 4224.0 当前持仓量 97.0 当前持仓成本 41.37987224\n",
      "date 2019-10-28 open 42.47219806 high 42.60070698 low 41.18710886 volume 2998.0 当前持仓量 97.0 当前持仓成本 41.37987224\n",
      "date 2019-10-29 open 41.765399 high 41.95816238 low 41.25136332 volume 2092.0 当前持仓量 97.0 当前持仓成本 41.37987224\n",
      "date 2019-10-30 open 41.31561778 high 41.70114454 low 40.4803098 volume 2020.0 当前持仓量 97.0 当前持仓成本 41.37987224\n",
      "date 2019-10-31 open 40.86583656 high 41.37987224 low 40.28754642 volume 1937.0 当前持仓量 97.0 当前持仓成本 41.37987224\n",
      "date 2019-11-01 open 40.8015821 high 42.02241684 low 39.96627412 volume 2425.0 当前持仓量 97.0 当前持仓成本 41.37987224\n",
      "date 2019-11-04 open 41.95816238 high 42.21518022 low 41.50838116 volume 2552.0 当前持仓量 97.0 当前持仓成本 41.37987224\n",
      "date 2019-11-05 open 42.21518022 high 44.20706848 low 41.70114454 volume 4810.0 当前持仓量 97.0 当前持仓成本 41.37987224\n",
      "date 2019-11-06 open 43.62877834 high 43.62877834 low 41.89390792 volume 3756.0 当前持仓量 97.0 当前持仓成本 41.37987224\n",
      "2019-11-07, SELL EXECUTED, ref:2579, Price: 42.2152, Size: -88.00, Remsize: -9.00, Cost: 3641.4288, Stock: 600466.SH\n",
      "date 2019-11-07 open 42.21518022 high 42.85772482 low 41.82965346 volume 1943.0 当前持仓量 9.0 当前持仓成本 41.37987224\n",
      "date 2019-11-08 open 42.66496144 high 42.98623374 low 41.765399 volume 2025.0 当前持仓量 9.0 当前持仓成本 41.37987224\n",
      "date 2019-11-11 open 41.70114454 high 41.82965346 low 40.93009102 volume 1750.0 当前持仓量 9.0 当前持仓成本 41.37987224\n",
      "date 2019-11-12 open 41.05859994 high 41.18710886 low 40.41605534 volume 1567.0 当前持仓量 9.0 当前持仓成本 41.37987224\n",
      "date 2019-11-13 open 40.99434548 high 40.99434548 low 40.03052858 volume 1776.0 当前持仓量 9.0 当前持仓成本 41.37987224\n",
      "date 2019-11-14 open 40.41605534 high 40.99434548 low 40.09478304 volume 1248.0 当前持仓量 9.0 当前持仓成本 41.37987224\n",
      "date 2019-11-15 open 40.8015821 high 41.31561778 low 40.35180088 volume 1167.0 当前持仓量 9.0 当前持仓成本 41.37987224\n",
      "date 2019-11-18 open 40.1590375 high 41.70114454 low 40.1590375 volume 1560.0 当前持仓量 9.0 当前持仓成本 41.37987224\n",
      "date 2019-11-19 open 41.57263562 high 42.66496144 low 41.37987224 volume 1696.0 当前持仓量 9.0 当前持仓成本 41.37987224\n",
      "date 2019-11-20 open 42.60070698 high 43.24325158 low 42.34368914 volume 2259.0 当前持仓量 9.0 当前持仓成本 41.37987224\n",
      "2019-11-21, SELL EXECUTED, ref:2580, Price: 42.7935, Size: -9.00, Remsize: 0.00, Cost: 372.4189, Stock: 600466.SH\n",
      "date 2019-11-21 open 42.79347036 high 43.62877834 low 42.407943599999996 volume 2059.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-11-22 open 43.17899712 high 44.07855956 low 42.34368914 volume 2225.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-11-25 open 42.85772482 high 44.59259524 low 42.53645252 volume 3066.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-11-26 open 43.56452388 high 44.0143051 low 41.89390792 volume 3271.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-11-27 open 42.47219806 high 44.84961308 low 42.21518022 volume 4678.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-11-28 open 43.6930328 high 44.0143051 low 42.79347036 volume 1961.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-11-29 open 42.92197928 high 43.50026942 low 42.34368914 volume 1316.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2019-12-02 open 42.66496144 high 44.14281402 low 42.66496144 volume 2120.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2019-12-03, BUY EXECUTED, ref:2581，Price: 43.6930, Size: 87.00, Remsize: 913.00, Cost: 3801.2939, Stock: 600466.SH\n",
      "date 2019-12-03 open 43.6930328 high 44.52834078 low 43.30750604 volume 2268.0 当前持仓量 87.0 当前持仓成本 43.6930328\n",
      "2019-12-04, SELL EXECUTED, ref:2582, Price: 44.0143, Size: -86.00, Remsize: -1.00, Cost: 3757.6008, Stock: 600466.SH\n",
      "date 2019-12-04 open 44.0143051 high 44.07855956 low 42.98623374 volume 1899.0 当前持仓量 1.0 当前持仓成本 43.6930328\n",
      "date 2019-12-05 open 43.56452388 high 43.6930328 low 42.66496144 volume 1806.0 当前持仓量 1.0 当前持仓成本 43.6930328\n",
      "date 2019-12-06 open 42.98623374 high 43.17899712 low 42.53645252 volume 1564.0 当前持仓量 1.0 当前持仓成本 43.6930328\n",
      "date 2019-12-09 open 43.11474266 high 44.6568497 low 43.11474266 volume 3443.0 当前持仓量 1.0 当前持仓成本 43.6930328\n",
      "date 2019-12-10 open 44.27132294 high 44.46408632 low 43.6930328 volume 1742.0 当前持仓量 1.0 当前持仓成本 43.6930328\n",
      "date 2019-12-11 open 44.27132294 high 44.91386754 low 43.88579618 volume 2445.0 当前持仓量 1.0 当前持仓成本 43.6930328\n",
      "date 2019-12-12 open 44.59259524 high 45.49215768 low 44.20706848 volume 2210.0 当前持仓量 1.0 当前持仓成本 43.6930328\n",
      "date 2019-12-13 open 44.84961308 high 44.91386754 low 44.07855956 volume 2446.0 当前持仓量 1.0 当前持仓成本 43.6930328\n",
      "date 2019-12-16 open 45.10663092 high 45.10663092 low 44.3355774 volume 2348.0 当前持仓量 1.0 当前持仓成本 43.6930328\n",
      "date 2019-12-17 open 44.84961308 high 46.07044782 low 44.52834078 volume 3060.0 当前持仓量 1.0 当前持仓成本 43.6930328\n",
      "date 2019-12-18 open 45.49215768 high 46.00619336 low 45.17088538 volume 2535.0 当前持仓量 1.0 当前持仓成本 43.6930328\n",
      "date 2019-12-19 open 45.87768444 high 46.71299242 low 45.42790322 volume 2372.0 当前持仓量 1.0 当前持仓成本 43.6930328\n",
      "date 2019-12-20 open 45.6206666 high 47.548300399999995 low 45.23513984 volume 4081.0 当前持仓量 1.0 当前持仓成本 43.6930328\n",
      "date 2019-12-23 open 46.32746566 high 46.97001026 low 45.17088538 volume 2637.0 当前持仓量 1.0 当前持仓成本 43.6930328\n",
      "date 2019-12-24 open 45.42790322 high 45.74917552 low 44.3355774 volume 2566.0 当前持仓量 1.0 当前持仓成本 43.6930328\n",
      "date 2019-12-25 open 44.84961308 high 45.10663092 low 44.3355774 volume 1459.0 当前持仓量 1.0 当前持仓成本 43.6930328\n",
      "date 2019-12-26 open 45.17088538 high 46.07044782 low 45.10663092 volume 2782.0 当前持仓量 1.0 当前持仓成本 43.6930328\n",
      "date 2019-12-27 open 45.49215768 high 45.9419389 low 45.299394299999996 volume 2169.0 当前持仓量 1.0 当前持仓成本 43.6930328\n",
      "date 2019-12-30 open 45.6206666 high 46.32746566 low 45.55641214 volume 2046.0 当前持仓量 1.0 当前持仓成本 43.6930328\n",
      "date 2019-12-31 open 46.00619336 high 47.67680932 low 45.87768444 volume 3502.0 当前持仓量 1.0 当前持仓成本 43.6930328\n",
      "2020-01-02, SELL EXECUTED, ref:2583, Price: 48.0623, Size: -1.00, Remsize: 0.00, Cost: 43.6930, Stock: 600466.SH\n",
      "date 2020-01-02 open 48.06233608 high 49.7972065 low 48.06233608 volume 5342.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-01-03 open 49.09040744 high 49.28317082 low 48.12659054 volume 3570.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-01-06 open 48.190845 high 48.31935392 low 47.03426472 volume 2771.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-01-07 open 47.48404594 high 47.93382716 low 47.16277364 volume 1846.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-01-08 open 47.48404594 high 47.67680932 low 46.52022904 volume 2848.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-01-09 open 47.99808162 high 48.96189852 low 47.99808162 volume 2836.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-01-10 open 49.21891636 high 49.34742528 low 48.38360838 volume 1710.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-01-13 open 49.02615298 high 49.28317082 low 48.190845 volume 1699.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-01-14 open 49.1546619 high 49.7972065 low 48.25509946 volume 1626.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-01-15 open 48.06233608 high 48.44786284 low 47.2270281 volume 1889.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-01-16 open 47.99808162 high 48.06233608 low 47.2270281 volume 1095.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-01-17 open 47.80531824 high 47.99808162 low 47.09851918 volume 1108.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2020-01-20, BUY EXECUTED, ref:2584，Price: 47.0985, Size: 76.00, Remsize: 924.00, Cost: 3579.4875, Stock: 600466.SH\n",
      "date 2020-01-20 open 47.09851918 high 47.2270281 low 45.81342998 volume 2294.0 当前持仓量 76.0 当前持仓成本 47.09851918\n",
      "date 2020-01-21 open 46.52022904 high 46.52022904 low 44.78535862 volume 2977.0 当前持仓量 76.0 当前持仓成本 47.09851918\n",
      "date 2020-01-22 open 45.17088538 high 46.2632112 low 44.72110416 volume 2039.0 当前持仓量 76.0 当前持仓成本 47.09851918\n",
      "date 2020-01-23 open 45.49215768 high 45.87768444 low 43.75728726 volume 2148.0 当前持仓量 76.0 当前持仓成本 47.09851918\n",
      "date 2020-02-03 open 39.70925628 high 39.70925628 low 39.70925628 volume 310.0 当前持仓量 76.0 当前持仓成本 47.09851918\n",
      "date 2020-02-04 open 37.07482342 high 40.03052858 low 37.07482342 volume 3831.0 当前持仓量 76.0 当前持仓成本 47.09851918\n",
      "date 2020-02-05 open 39.70925628 high 40.8015821 low 39.06671168 volume 2462.0 当前持仓量 76.0 当前持仓成本 47.09851918\n",
      "date 2020-02-06 open 39.8377652 high 40.93009102 low 39.38798398 volume 2434.0 当前持仓量 76.0 当前持仓成本 47.09851918\n",
      "date 2020-02-07 open 40.1590375 high 40.28754642 low 39.5164929 volume 2372.0 当前持仓量 76.0 当前持仓成本 47.09851918\n",
      "date 2020-02-10 open 40.03052858 high 41.31561778 low 39.38798398 volume 2313.0 当前持仓量 76.0 当前持仓成本 47.09851918\n",
      "date 2020-02-11 open 40.93009102 high 43.6930328 low 40.93009102 volume 4257.0 当前持仓量 76.0 当前持仓成本 47.09851918\n",
      "date 2020-02-12 open 42.7292159 high 43.50026942 low 42.21518022 volume 2847.0 当前持仓量 76.0 当前持仓成本 47.09851918\n",
      "date 2020-02-13 open 42.66496144 high 44.978122 low 42.66496144 volume 4834.0 当前持仓量 76.0 当前持仓成本 47.09851918\n",
      "2020-02-14, SELL EXECUTED, ref:2585, Price: 44.2713, Size: -76.00, Remsize: 0.00, Cost: 3579.4875, Stock: 600466.SH\n",
      "date 2020-02-14 open 44.27132294 high 45.36364876 low 43.82154172 volume 2756.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-02-17 open 45.42790322 high 45.9419389 low 44.78535862 volume 2760.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-02-18 open 45.17088538 high 45.17088538 low 43.3717605 volume 3601.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-02-19 open 43.88579618 high 44.46408632 low 43.56452388 volume 1975.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-02-20 open 44.0143051 high 44.46408632 low 43.17899712 volume 2237.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-02-21 open 43.88579618 high 44.0143051 low 43.3717605 volume 2046.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-02-24 open 43.43601496 high 43.43601496 low 41.05859994 volume 4834.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2020-02-25, BUY EXECUTED, ref:2586，Price: 41.6369, Size: 90.00, Remsize: 910.00, Cost: 3747.3201, Stock: 600466.SH\n",
      "date 2020-02-25 open 41.63689008 high 42.98623374 low 41.37987224 volume 3074.0 当前持仓量 90.0 当前持仓成本 41.63689008\n",
      "date 2020-02-26 open 41.95816238 high 44.20706848 low 41.50838116 volume 3624.0 当前持仓量 90.0 当前持仓成本 41.63689008\n",
      "date 2020-02-27 open 42.98623374 high 43.50026942 low 42.15092576 volume 3044.0 当前持仓量 90.0 当前持仓成本 41.63689008\n",
      "date 2020-02-28 open 41.70114454 high 43.50026942 low 41.31561778 volume 2864.0 当前持仓量 90.0 当前持仓成本 41.63689008\n",
      "date 2020-03-02 open 42.15092576 high 45.17088538 low 41.95816238 volume 5272.0 当前持仓量 90.0 当前持仓成本 41.63689008\n",
      "date 2020-03-03 open 45.299394299999996 high 45.6206666 low 43.24325158 volume 3579.0 当前持仓量 90.0 当前持仓成本 41.63689008\n",
      "date 2020-03-04 open 43.75728726 high 45.87768444 low 43.43601496 volume 4381.0 当前持仓量 90.0 当前持仓成本 41.63689008\n",
      "2020-03-05, SELL EXECUTED, ref:2587, Price: 45.3636, Size: -90.00, Remsize: 0.00, Cost: 3747.3201, Stock: 600466.SH\n",
      "date 2020-03-05 open 45.36364876 high 45.87768444 low 44.6568497 volume 2796.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-03-06 open 45.10663092 high 45.49215768 low 43.75728726 volume 2978.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-03-09 open 42.92197928 high 43.24325158 low 41.57263562 volume 3925.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-03-10 open 41.31561778 high 42.92197928 low 41.25136332 volume 2517.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-03-11 open 43.050488200000004 high 43.56452388 low 42.34368914 volume 2674.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2020-03-12, BUY EXECUTED, ref:2588，Price: 42.7935, Size: 49.00, Remsize: 951.00, Cost: 2096.8800, Stock: 600466.SH\n",
      "date 2020-03-12 open 42.79347036 high 43.11474266 low 41.50838116 volume 1674.0 当前持仓量 49.0 当前持仓成本 42.79347036\n",
      "date 2020-03-13 open 40.03052858 high 41.82965346 low 39.32372952 volume 2082.0 当前持仓量 49.0 当前持仓成本 42.79347036\n",
      "date 2020-03-16 open 41.18710886 high 41.25136332 low 39.70925628 volume 2212.0 当前持仓量 49.0 当前持仓成本 42.79347036\n",
      "date 2020-03-17 open 39.96627412 high 40.86583656 low 39.32372952 volume 1677.0 当前持仓量 49.0 当前持仓成本 42.79347036\n",
      "date 2020-03-18 open 40.1590375 high 40.35180088 low 38.552676 volume 2535.0 当前持仓量 49.0 当前持仓成本 42.79347036\n",
      "date 2020-03-19 open 38.42416708 high 38.552676 low 36.6250422 volume 2308.0 当前持仓量 49.0 当前持仓成本 42.79347036\n",
      "date 2020-03-20 open 38.16714924 high 38.61693046 low 37.65311356 volume 1448.0 当前持仓量 49.0 当前持仓成本 42.79347036\n",
      "date 2020-03-23 open 36.75355112 high 37.910131400000004 low 36.6250422 volume 1500.0 当前持仓量 49.0 当前持仓成本 42.79347036\n",
      "date 2020-03-24 open 37.33184126 high 38.2314037 low 37.13907788 volume 1749.0 当前持仓量 49.0 当前持仓成本 42.79347036\n",
      "date 2020-03-25 open 38.93820276 high 40.03052858 low 38.35991262 volume 2198.0 当前持仓量 49.0 当前持仓成本 42.79347036\n",
      "date 2020-03-26 open 39.38798398 high 39.70925628 low 39.06671168 volume 1140.0 当前持仓量 49.0 当前持仓成本 42.79347036\n",
      "date 2020-03-27 open 40.1590375 high 40.86583656 low 39.70925628 volume 1556.0 当前持仓量 49.0 当前持仓成本 42.79347036\n",
      "date 2020-03-30 open 39.5164929 high 40.22329196 low 39.45223844 volume 1144.0 当前持仓量 49.0 当前持仓成本 42.79347036\n",
      "2020-03-31, SELL EXECUTED, ref:2589, Price: 40.1590, Size: -49.00, Remsize: 0.00, Cost: 2096.8800, Stock: 600466.SH\n",
      "date 2020-03-31 open 40.1590375 high 40.41605534 low 38.552676 volume 1968.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-04-01 open 38.93820276 high 39.58074736 low 38.29565816 volume 1736.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-04-02 open 38.552676 high 38.93820276 low 38.29565816 volume 1523.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-04-03 open 39.00245722 high 39.13096614 low 38.35991262 volume 1175.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-04-07 open 39.25947506 high 40.09478304 low 39.13096614 volume 2085.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2020-04-08, BUY EXECUTED, ref:2590，Price: 39.2595, Size: 85.00, Remsize: 915.00, Cost: 3337.0554, Stock: 600466.SH\n",
      "date 2020-04-08 open 39.25947506 high 39.96627412 low 38.873948299999995 volume 1891.0 当前持仓量 85.0 当前持仓成本 39.25947506\n",
      "date 2020-04-09 open 39.96627412 high 40.1590375 low 39.38798398 volume 1264.0 当前持仓量 85.0 当前持仓成本 39.25947506\n",
      "date 2020-04-10 open 39.77351074 high 40.09478304 low 39.38798398 volume 1305.0 当前持仓量 85.0 当前持仓成本 39.25947506\n",
      "2020-04-13, SELL EXECUTED, ref:2591, Price: 39.4522, Size: -81.00, Remsize: -4.00, Cost: 3180.0175, Stock: 600466.SH\n",
      "date 2020-04-13 open 39.45223844 high 39.8377652 low 39.25947506 volume 983.0 当前持仓量 4.0 当前持仓成本 39.25947506\n",
      "date 2020-04-14 open 39.5164929 high 40.41605534 low 39.5164929 volume 1280.0 当前持仓量 4.0 当前持仓成本 39.25947506\n",
      "date 2020-04-15 open 40.1590375 high 40.28754642 low 39.38798398 volume 1276.0 当前持仓量 4.0 当前持仓成本 39.25947506\n",
      "date 2020-04-16 open 39.5164929 high 39.8377652 low 38.80969384 volume 1373.0 当前持仓量 4.0 当前持仓成本 39.25947506\n",
      "date 2020-04-17 open 39.90201966 high 40.1590375 low 39.32372952 volume 1920.0 当前持仓量 4.0 当前持仓成本 39.25947506\n",
      "date 2020-04-20 open 39.58074736 high 39.77351074 low 37.78162248 volume 4603.0 当前持仓量 4.0 当前持仓成本 39.25947506\n",
      "date 2020-04-21 open 37.910131400000004 high 37.910131400000004 low 36.75355112 volume 3693.0 当前持仓量 4.0 当前持仓成本 39.25947506\n",
      "date 2020-04-22 open 36.68929666 high 37.2675868 low 36.43227882 volume 2730.0 当前持仓量 4.0 当前持仓成本 39.25947506\n",
      "date 2020-04-23 open 37.07482342 high 37.13907788 low 36.6250422 volume 2367.0 当前持仓量 4.0 当前持仓成本 39.25947506\n",
      "date 2020-04-24 open 36.88206004 high 36.9463145 low 35.85398868 volume 1935.0 当前持仓量 4.0 当前持仓成本 39.25947506\n",
      "date 2020-04-27 open 36.11100652 high 36.75355112 low 36.04675206 volume 1506.0 当前持仓量 4.0 当前持仓成本 39.25947506\n",
      "date 2020-04-28 open 36.43227882 high 36.43227882 low 35.21144408 volume 2930.0 当前持仓量 4.0 当前持仓成本 39.25947506\n",
      "date 2020-04-29 open 35.40420746 high 36.11100652 low 35.339953 volume 1939.0 当前持仓量 4.0 当前持仓成本 39.25947506\n",
      "date 2020-04-30 open 36.04675206 high 37.39609572 low 35.9824976 volume 4180.0 当前持仓量 4.0 当前持仓成本 39.25947506\n",
      "date 2020-05-06 open 36.6250422 high 36.88206004 low 35.59697084 volume 5815.0 当前持仓量 4.0 当前持仓成本 39.25947506\n",
      "date 2020-05-07 open 35.91824314 high 35.9824976 low 35.339953 volume 3912.0 当前持仓量 4.0 当前持仓成本 39.25947506\n",
      "date 2020-05-08 open 35.6612253 high 36.17526098 low 35.53271638 volume 2744.0 当前持仓量 4.0 当前持仓成本 39.25947506\n",
      "date 2020-05-11 open 36.36802436 high 36.49653328 low 35.91824314 volume 2749.0 当前持仓量 4.0 当前持仓成本 39.25947506\n",
      "2020-05-12, SELL EXECUTED, ref:2592, Price: 35.9825, Size: -4.00, Remsize: 0.00, Cost: 157.0379, Stock: 600466.SH\n",
      "date 2020-05-12 open 35.9824976 high 35.9824976 low 35.14718962 volume 3026.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2020-05-13, BUY EXECUTED, ref:2593，Price: 35.2114, Size: 241.00, Remsize: 759.00, Cost: 8485.9580, Stock: 600466.SH\n",
      "date 2020-05-13 open 35.21144408 high 35.21144408 low 34.82591732 volume 1931.0 当前持仓量 241.0 当前持仓成本 35.21144408\n",
      "date 2020-05-14 open 35.018680700000004 high 35.08293516 low 34.50464502 volume 1577.0 当前持仓量 241.0 当前持仓成本 35.21144408\n",
      "date 2020-05-15 open 34.6974084 high 34.95442624 low 34.50464502 volume 1212.0 当前持仓量 241.0 当前持仓成本 35.21144408\n",
      "date 2020-05-18 open 34.89017178 high 34.89017178 low 34.50464502 volume 1696.0 当前持仓量 241.0 当前持仓成本 35.21144408\n",
      "date 2020-05-19 open 34.76166286 high 34.76166286 low 33.86210042 volume 2818.0 当前持仓量 241.0 当前持仓成本 35.21144408\n",
      "date 2020-05-20 open 33.733591499999996 high 33.733591499999996 low 32.89828352 volume 3053.0 当前持仓量 241.0 当前持仓成本 35.21144408\n",
      "date 2020-05-21 open 33.66933704 high 33.733591499999996 low 32.769774600000005 volume 2194.0 当前持仓量 241.0 当前持仓成本 35.21144408\n",
      "date 2020-05-22 open 32.89828352 high 32.89828352 low 32.31999338 volume 1739.0 当前持仓量 241.0 当前持仓成本 35.21144408\n",
      "date 2020-05-25 open 32.4485023 high 32.96253798 low 32.38424784 volume 1575.0 当前持仓量 241.0 当前持仓成本 35.21144408\n",
      "date 2020-05-26 open 33.02679244 high 33.091046899999995 low 32.70552014 volume 1222.0 当前持仓量 241.0 当前持仓成本 35.21144408\n",
      "date 2020-05-27 open 32.89828352 high 33.54082812 low 32.70552014 volume 1736.0 当前持仓量 241.0 当前持仓成本 35.21144408\n",
      "date 2020-05-28 open 33.15530136 high 33.60508258 low 32.769774600000005 volume 1498.0 当前持仓量 241.0 当前持仓成本 35.21144408\n",
      "date 2020-05-29 open 33.21955582 high 33.34806474 low 32.70552014 volume 1554.0 当前持仓量 241.0 当前持仓成本 35.21144408\n",
      "date 2020-06-01 open 32.83402906 high 33.34806474 low 32.57701122 volume 3244.0 当前持仓量 241.0 当前持仓成本 35.21144408\n",
      "date 2020-06-02 open 33.28381028 high 34.44039056 low 33.15530136 volume 4819.0 当前持仓量 241.0 当前持仓成本 35.21144408\n",
      "2020-06-03, SELL EXECUTED, ref:2594, Price: 34.3119, Size: -156.00, Remsize: -85.00, Cost: 5492.9853, Stock: 600466.SH\n",
      "date 2020-06-03 open 34.31188164 high 34.95442624 low 33.66933704 volume 4069.0 当前持仓量 85.0 当前持仓成本 35.21144408\n",
      "date 2020-06-04 open 33.86210042 high 33.99060934 low 33.47657366 volume 2277.0 当前持仓量 85.0 当前持仓成本 35.21144408\n",
      "date 2020-06-05 open 33.66933704 high 33.733591499999996 low 33.02679244 volume 1800.0 当前持仓量 85.0 当前持仓成本 35.21144408\n",
      "date 2020-06-08 open 33.54082812 high 34.18337272 low 33.4123192 volume 2737.0 当前持仓量 85.0 当前持仓成本 35.21144408\n",
      "date 2020-06-09 open 33.86210042 high 33.92635488 low 33.28381028 volume 2284.0 当前持仓量 85.0 当前持仓成本 35.21144408\n",
      "date 2020-06-10 open 33.60508258 high 33.60508258 low 32.96253798 volume 1886.0 当前持仓量 85.0 当前持仓成本 35.21144408\n",
      "date 2020-06-11 open 33.21955582 high 33.34806474 low 32.64126568 volume 2189.0 当前持仓量 85.0 当前持仓成本 35.21144408\n",
      "date 2020-06-12 open 32.25573892 high 33.091046899999995 low 32.12723 volume 1736.0 当前持仓量 85.0 当前持仓成本 35.21144408\n",
      "date 2020-06-15 open 32.64126568 high 32.89828352 low 32.4485023 volume 1543.0 当前持仓量 85.0 当前持仓成本 35.21144408\n",
      "date 2020-06-16 open 32.769774600000005 high 33.15530136 low 32.57701122 volume 1775.0 当前持仓量 85.0 当前持仓成本 35.21144408\n",
      "date 2020-06-17 open 32.96253798 high 33.091046899999995 low 32.57701122 volume 1709.0 当前持仓量 85.0 当前持仓成本 35.21144408\n",
      "date 2020-06-18 open 32.83402906 high 35.27569854 low 32.70552014 volume 7936.0 当前持仓量 85.0 当前持仓成本 35.21144408\n",
      "date 2020-06-19 open 34.76166286 high 35.018680700000004 low 34.11911826 volume 3858.0 当前持仓量 85.0 当前持仓成本 35.21144408\n",
      "2020-06-22, SELL EXECUTED, ref:2595, Price: 34.6332, Size: -85.00, Remsize: 0.00, Cost: 2992.9727, Stock: 600466.SH\n",
      "date 2020-06-22 open 34.63315394 high 34.95442624 low 34.31188164 volume 2504.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-06-23 open 35.018680700000004 high 35.018680700000004 low 33.47657366 volume 6101.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-06-24 open 33.79784596 high 35.59697084 low 33.54082812 volume 5632.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-06-29 open 35.21144408 high 35.27569854 low 33.99060934 volume 3646.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-06-30 open 34.56889948 high 34.95442624 low 34.376136100000004 volume 2848.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-07-01 open 34.89017178 high 37.5888591 low 34.6974084 volume 8046.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-07-02 open 36.75355112 high 38.61693046 low 36.75355112 volume 8577.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-07-03 open 38.68118492 high 39.32372952 low 38.03864032 volume 7230.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-07-06 open 39.29205384 high 41.04736896 low 38.61693264 volume 8118.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-07-07 open 41.519953799999996 high 42.46512348 low 39.76463868 volume 7905.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-07-08 open 39.832150799999994 high 40.507272 low 39.1570296 volume 5651.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-07-09 open 40.23722352 high 41.45244168 low 39.29205384 volume 7401.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-07-10 open 40.30473564 high 40.37224776 low 38.75195688 volume 4887.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-07-13 open 39.35956596 high 40.1697114 low 38.61693264 volume 4641.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-07-14 open 39.89966292 high 40.1697114 low 38.54942052 volume 4713.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-07-15 open 39.69712656 high 40.507272 low 38.68444476 volume 4891.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2020-07-16, BUY EXECUTED, ref:2596，Price: 38.7520, Size: 93.00, Remsize: 907.00, Cost: 3603.9320, Stock: 600466.SH\n",
      "date 2020-07-16 open 38.75195688 high 39.29205384 low 37.33420236 volume 3735.0 当前持仓量 93.0 当前持仓成本 38.75195688\n",
      "date 2020-07-17 open 37.60425084 high 38.00932356 low 36.456544799999996 volume 3094.0 当前持仓量 93.0 当前持仓成本 38.75195688\n",
      "date 2020-07-20 open 37.26669024 high 38.54942052 low 36.92912964 volume 3190.0 当前持仓量 93.0 当前持仓成本 38.75195688\n",
      "date 2020-07-21 open 38.54942052 high 38.819469 low 38.00932356 volume 2395.0 当前持仓量 93.0 当前持仓成本 38.75195688\n",
      "date 2020-07-22 open 38.21185992 high 38.68444476 low 37.60425084 volume 2342.0 当前持仓量 93.0 当前持仓成本 38.75195688\n",
      "date 2020-07-23 open 37.8067872 high 37.94181144 low 36.72659328 volume 2665.0 当前持仓量 93.0 当前持仓成本 38.75195688\n",
      "date 2020-07-24 open 37.33420236 high 38.00932356 low 36.18649632 volume 2875.0 当前持仓量 93.0 当前持仓成本 38.75195688\n",
      "date 2020-07-27 open 36.456544799999996 high 36.86161752 low 35.30883876 volume 1902.0 当前持仓量 93.0 当前持仓成本 38.75195688\n",
      "date 2020-07-28 open 35.71391148 high 36.1189842 low 35.57888724 volume 1472.0 当前持仓量 93.0 当前持仓成本 38.75195688\n",
      "date 2020-07-29 open 35.84893572 high 36.456544799999996 low 35.37635088 volume 2811.0 当前持仓量 93.0 当前持仓成本 38.75195688\n",
      "date 2020-07-30 open 36.32152056 high 36.52405692 low 35.91644784 volume 1767.0 当前持仓量 93.0 当前持仓成本 38.75195688\n",
      "date 2020-07-31 open 35.84893572 high 36.65908116 low 35.781423600000004 volume 2407.0 当前持仓量 93.0 当前持仓成本 38.75195688\n",
      "date 2020-08-03 open 36.38903268 high 36.86161752 low 36.32152056 volume 2828.0 当前持仓量 93.0 当前持仓成本 38.75195688\n",
      "date 2020-08-04 open 36.99664176 high 37.26669024 low 36.456544799999996 volume 2650.0 当前持仓量 93.0 当前持仓成本 38.75195688\n",
      "date 2020-08-05 open 36.92912964 high 36.92912964 low 36.1189842 volume 2373.0 当前持仓量 93.0 当前持仓成本 38.75195688\n",
      "2020-08-06, SELL EXECUTED, ref:2597, Price: 36.4565, Size: -93.00, Remsize: 0.00, Cost: 3603.9320, Stock: 600466.SH\n",
      "date 2020-08-06 open 36.456544799999996 high 36.65908116 low 35.91644784 volume 1661.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-08-07 open 36.18649632 high 36.18649632 low 35.24132664 volume 2560.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-08-10 open 35.64639936 high 36.59156904 low 35.51137512 volume 2836.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-08-11 open 36.456544799999996 high 36.7941054 low 35.71391148 volume 2837.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2020-08-12, BUY EXECUTED, ref:2598，Price: 35.7814, Size: 158.00, Remsize: 842.00, Cost: 5653.4649, Stock: 600466.SH\n",
      "date 2020-08-12 open 35.781423600000004 high 36.05147208 low 35.37635088 volume 2212.0 当前持仓量 158.0 当前持仓成本 35.781423600000004\n",
      "date 2020-08-13 open 35.98395996 high 36.25400844 low 35.84893572 volume 1535.0 当前持仓量 158.0 当前持仓成本 35.781423600000004\n",
      "date 2020-08-14 open 36.05147208 high 36.99664176 low 35.781423600000004 volume 2583.0 当前持仓量 158.0 当前持仓成本 35.781423600000004\n",
      "date 2020-08-17 open 36.99664176 high 38.14434779999999 low 36.86161752 volume 3992.0 当前持仓量 158.0 当前持仓成本 35.781423600000004\n",
      "2020-08-18, SELL EXECUTED, ref:2599, Price: 37.6718, Size: -129.00, Remsize: -29.00, Cost: 4615.8036, Stock: 600466.SH\n",
      "date 2020-08-18 open 37.67176296 high 37.8067872 low 36.7941054 volume 2847.0 当前持仓量 29.0 当前持仓成本 35.781423600000004\n",
      "date 2020-08-19 open 36.99664176 high 37.131665999999996 low 36.32152056 volume 2167.0 当前持仓量 29.0 当前持仓成本 35.781423600000004\n",
      "date 2020-08-20 open 36.456544799999996 high 36.7941054 low 36.25400844 volume 1346.0 当前持仓量 29.0 当前持仓成本 35.781423600000004\n",
      "date 2020-08-21 open 36.59156904 high 36.86161752 low 36.38903268 volume 1248.0 当前持仓量 29.0 当前持仓成本 35.781423600000004\n",
      "date 2020-08-24 open 36.65908116 high 37.19917812 low 36.32152056 volume 1731.0 当前持仓量 29.0 当前持仓成本 35.781423600000004\n",
      "date 2020-08-25 open 36.65908116 high 36.99664176 low 36.18649632 volume 1498.0 当前持仓量 29.0 当前持仓成本 35.781423600000004\n",
      "date 2020-08-26 open 36.32152056 high 36.38903268 low 35.37635088 volume 1898.0 当前持仓量 29.0 当前持仓成本 35.781423600000004\n",
      "date 2020-08-27 open 35.51137512 high 35.57888724 low 35.03879028 volume 1338.0 当前持仓量 29.0 当前持仓成本 35.781423600000004\n",
      "date 2020-08-28 open 35.781423600000004 high 36.52405692 low 35.71391148 volume 2201.0 当前持仓量 29.0 当前持仓成本 35.781423600000004\n",
      "date 2020-08-31 open 36.7941054 high 38.00932356 low 36.65908116 volume 3938.0 当前持仓量 29.0 当前持仓成本 35.781423600000004\n",
      "date 2020-09-01 open 37.131665999999996 high 37.26669024 low 36.59156904 volume 1440.0 当前持仓量 29.0 当前持仓成本 35.781423600000004\n",
      "date 2020-09-02 open 36.99664176 high 37.131665999999996 low 36.456544799999996 volume 1555.0 当前持仓量 29.0 当前持仓成本 35.781423600000004\n",
      "2020-09-03, SELL EXECUTED, ref:2600, Price: 36.8616, Size: -29.00, Remsize: 0.00, Cost: 1037.6613, Stock: 600466.SH\n",
      "date 2020-09-03 open 36.86161752 high 36.92912964 low 36.1189842 volume 1655.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-09-04 open 35.91644784 high 36.32152056 low 35.71391148 volume 1600.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-09-07 open 36.05147208 high 36.72659328 low 35.37635088 volume 2007.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-09-08 open 35.781423600000004 high 36.1189842 low 35.51137512 volume 1493.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2020-09-09, BUY EXECUTED, ref:2601，Price: 35.7139, Size: 116.00, Remsize: 884.00, Cost: 4142.8137, Stock: 600466.SH\n",
      "date 2020-09-09 open 35.71391148 high 36.52405692 low 35.57888724 volume 2321.0 当前持仓量 116.0 当前持仓成本 35.71391148\n",
      "date 2020-09-10 open 36.456544799999996 high 37.60425084 low 36.25400844 volume 4996.0 当前持仓量 116.0 当前持仓成本 35.71391148\n",
      "date 2020-09-11 open 36.52405692 high 36.7941054 low 35.84893572 volume 2524.0 当前持仓量 116.0 当前持仓成本 35.71391148\n",
      "date 2020-09-14 open 36.38903268 high 36.52405692 low 35.84893572 volume 1938.0 当前持仓量 116.0 当前持仓成本 35.71391148\n",
      "date 2020-09-15 open 36.1189842 high 36.52405692 low 35.84893572 volume 1581.0 当前持仓量 116.0 当前持仓成本 35.71391148\n",
      "2020-09-16, SELL EXECUTED, ref:2602, Price: 36.3890, Size: -116.00, Remsize: 0.00, Cost: 4142.8137, Stock: 600466.SH\n",
      "date 2020-09-16 open 36.38903268 high 37.8067872 low 36.1189842 volume 6242.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-09-17 open 37.60425084 high 37.60425084 low 36.59156904 volume 3398.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-09-18 open 36.86161752 high 38.819469 low 36.72659328 volume 5797.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-09-21 open 38.34688416 high 38.75195688 low 37.73927508 volume 3502.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-09-22 open 37.53673872 high 37.73927508 low 36.86161752 volume 2938.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-09-23 open 37.33420236 high 37.40171448 low 36.65908116 volume 2395.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-09-24 open 36.59156904 high 36.7941054 low 35.91644784 volume 2063.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-09-25 open 35.98395996 high 36.18649632 low 34.56620544 volume 3552.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2020-09-28, BUY EXECUTED, ref:2603，Price: 34.6337, Size: 145.00, Remsize: 855.00, Cost: 5021.8890, Stock: 600466.SH\n",
      "date 2020-09-28 open 34.63371756 high 35.24132664 low 34.431181200000005 volume 2618.0 当前持仓量 145.0 当前持仓成本 34.63371756\n",
      "date 2020-09-29 open 35.03879028 high 35.1063024 low 34.29615696 volume 2125.0 当前持仓量 145.0 当前持仓成本 34.63371756\n",
      "date 2020-09-30 open 34.431181200000005 high 34.56620544 low 33.82357212 volume 1862.0 当前持仓量 145.0 当前持仓成本 34.63371756\n",
      "date 2020-10-09 open 34.29615696 high 34.768741799999994 low 34.16113272 volume 1974.0 当前持仓量 145.0 当前持仓成本 34.63371756\n",
      "date 2020-10-12 open 34.36366908 high 35.57888724 low 34.36366908 volume 3018.0 当前持仓量 145.0 当前持仓成本 34.63371756\n",
      "date 2020-10-13 open 35.443863 high 35.443863 low 34.83625392 volume 1575.0 当前持仓量 145.0 当前持仓成本 34.63371756\n",
      "date 2020-10-14 open 34.90376604 high 35.1063024 low 34.431181200000005 volume 1711.0 当前持仓量 145.0 当前持仓成本 34.63371756\n",
      "date 2020-10-15 open 34.70122968 high 34.83625392 low 34.36366908 volume 1337.0 当前持仓量 145.0 当前持仓成本 34.63371756\n",
      "2020-10-16, SELL EXECUTED, ref:2604, Price: 34.4987, Size: -107.00, Remsize: -38.00, Cost: 3705.8078, Stock: 600466.SH\n",
      "date 2020-10-16 open 34.49869332 high 34.90376604 low 34.29615696 volume 1502.0 当前持仓量 38.0 当前持仓成本 34.63371756\n",
      "date 2020-10-19 open 34.83625392 high 35.30883876 low 34.29615696 volume 2197.0 当前持仓量 38.0 当前持仓成本 34.63371756\n",
      "date 2020-10-20 open 34.49869332 high 34.56620544 low 33.89108424 volume 1579.0 当前持仓量 38.0 当前持仓成本 34.63371756\n",
      "date 2020-10-21 open 34.29615696 high 34.36366908 low 33.95859636 volume 1303.0 当前持仓量 38.0 当前持仓成本 34.63371756\n",
      "date 2020-10-22 open 34.16113272 high 34.49869332 low 33.95859636 volume 1428.0 当前持仓量 38.0 当前持仓成本 34.63371756\n",
      "date 2020-10-23 open 34.49869332 high 34.63371756 low 34.29615696 volume 1241.0 当前持仓量 38.0 当前持仓成本 34.63371756\n",
      "date 2020-10-26 open 34.431181200000005 high 34.56620544 low 33.89108424 volume 1286.0 当前持仓量 38.0 当前持仓成本 34.63371756\n",
      "date 2020-10-27 open 34.0936206 high 34.0936206 low 33.35098728 volume 1612.0 当前持仓量 38.0 当前持仓成本 34.63371756\n",
      "date 2020-10-28 open 33.75606 high 33.82357212 low 33.21596304 volume 1191.0 当前持仓量 38.0 当前持仓成本 34.63371756\n",
      "date 2020-10-29 open 33.4184994 high 33.82357212 low 33.35098728 volume 1140.0 当前持仓量 38.0 当前持仓成本 34.63371756\n",
      "date 2020-10-30 open 33.62103576 high 34.02610848 low 33.21596304 volume 1415.0 当前持仓量 38.0 当前持仓成本 34.63371756\n",
      "date 2020-11-02 open 33.62103576 high 34.02610848 low 33.4184994 volume 2669.0 当前持仓量 38.0 当前持仓成本 34.63371756\n",
      "date 2020-11-03 open 34.02610848 high 34.22864484 low 33.75606 volume 1709.0 当前持仓量 38.0 当前持仓成本 34.63371756\n",
      "date 2020-11-04 open 34.0936206 high 34.16113272 low 33.4184994 volume 1184.0 当前持仓量 38.0 当前持仓成本 34.63371756\n",
      "date 2020-11-05 open 33.82357212 high 34.36366908 low 33.62103576 volume 1589.0 当前持仓量 38.0 当前持仓成本 34.63371756\n",
      "date 2020-11-06 open 34.0936206 high 34.49869332 low 33.82357212 volume 1646.0 当前持仓量 38.0 当前持仓成本 34.63371756\n",
      "2020-11-09, SELL EXECUTED, ref:2605, Price: 34.2286, Size: -38.00, Remsize: 0.00, Cost: 1316.0813, Stock: 600466.SH\n",
      "date 2020-11-09 open 34.22864484 high 34.83625392 low 34.22864484 volume 2359.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-10 open 34.70122968 high 34.97127816 low 33.95859636 volume 2034.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-11 open 34.0936206 high 34.97127816 low 33.95859636 volume 2664.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-12 open 34.70122968 high 34.70122968 low 34.16113272 volume 1867.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-13 open 34.36366908 high 34.36366908 low 33.35098728 volume 2782.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-16 open 33.62103576 high 34.22864484 low 33.55352364 volume 1711.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-17 open 34.22864484 high 35.1063024 low 34.16113272 volume 4125.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-18 open 35.17381452 high 35.443863 low 34.70122968 volume 2563.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-19 open 34.90376604 high 35.24132664 low 34.56620544 volume 1963.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-20 open 34.63371756 high 34.83625392 low 34.36366908 volume 1400.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-23 open 34.70122968 high 35.30883876 low 34.63371756 volume 2452.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-24 open 35.03879028 high 35.24132664 low 34.63371756 volume 1518.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-25 open 34.90376604 high 35.24132664 low 34.63371756 volume 1522.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-26 open 34.63371756 high 34.768741799999994 low 34.22864484 volume 1301.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-27 open 34.63371756 high 35.1063024 low 34.49869332 volume 1698.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-11-30 open 35.24132664 high 36.1189842 low 34.83625392 volume 4681.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2020-12-01, BUY EXECUTED, ref:2606，Price: 34.8363, Size: 140.00, Remsize: 860.00, Cost: 4877.0755, Stock: 600466.SH\n",
      "date 2020-12-01 open 34.83625392 high 35.30883876 low 34.49869332 volume 2529.0 当前持仓量 140.0 当前持仓成本 34.83625392\n",
      "2020-12-02, SELL EXECUTED, ref:2607, Price: 35.1063, Size: -140.00, Remsize: 0.00, Cost: 4877.0755, Stock: 600466.SH\n",
      "date 2020-12-02 open 35.1063024 high 35.64639936 low 34.90376604 volume 2646.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-12-03 open 35.1063024 high 35.24132664 low 34.70122968 volume 2440.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2020-12-04 open 34.768741799999994 high 34.83625392 low 34.0936206 volume 2625.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2020-12-07, BUY EXECUTED, ref:2608，Price: 34.2962, Size: 196.00, Remsize: 804.00, Cost: 6722.0468, Stock: 600466.SH\n",
      "date 2020-12-07 open 34.29615696 high 34.36366908 low 33.82357212 volume 2362.0 当前持仓量 196.0 当前持仓成本 34.29615696\n",
      "date 2020-12-08 open 33.95859636 high 34.0936206 low 33.82357212 volume 1214.0 当前持仓量 196.0 当前持仓成本 34.29615696\n",
      "date 2020-12-09 open 33.95859636 high 34.02610848 low 33.48601152 volume 1565.0 当前持仓量 196.0 当前持仓成本 34.29615696\n",
      "date 2020-12-10 open 33.55352364 high 33.89108424 low 33.48601152 volume 1296.0 当前持仓量 196.0 当前持仓成本 34.29615696\n",
      "date 2020-12-11 open 33.48601152 high 33.62103576 low 32.81089032 volume 1828.0 当前持仓量 196.0 当前持仓成本 34.29615696\n",
      "date 2020-12-14 open 33.21596304 high 33.48601152 low 33.080938800000006 volume 1315.0 当前持仓量 196.0 当前持仓成本 34.29615696\n",
      "date 2020-12-15 open 33.35098728 high 33.35098728 low 32.7433782 volume 1493.0 当前持仓量 196.0 当前持仓成本 34.29615696\n",
      "date 2020-12-16 open 33.080938800000006 high 33.21596304 low 32.81089032 volume 1076.0 当前持仓量 196.0 当前持仓成本 34.29615696\n",
      "date 2020-12-17 open 32.7433782 high 32.94591456 low 32.405817600000006 volume 1487.0 当前持仓量 196.0 当前持仓成本 34.29615696\n",
      "date 2020-12-18 open 32.87840244 high 33.01342668 low 32.47332972 volume 1266.0 当前持仓量 196.0 当前持仓成本 34.29615696\n",
      "date 2020-12-21 open 32.54084184 high 32.67586608 low 32.068257 volume 1478.0 当前持仓量 196.0 当前持仓成本 34.29615696\n",
      "date 2020-12-22 open 32.47332972 high 32.60835396 low 32.00074488 volume 1787.0 当前持仓量 196.0 当前持仓成本 34.29615696\n",
      "date 2020-12-23 open 32.00074488 high 32.20328124 low 31.79820852 volume 1326.0 当前持仓量 196.0 当前持仓成本 34.29615696\n",
      "date 2020-12-24 open 32.068257 high 32.068257 low 31.12308732 volume 1817.0 当前持仓量 196.0 当前持仓成本 34.29615696\n",
      "date 2020-12-25 open 31.12308732 high 31.59567216 low 30.92055096 volume 2496.0 当前持仓量 196.0 当前持仓成本 34.29615696\n",
      "date 2020-12-28 open 31.25811156 high 31.25811156 low 30.65050248 volume 1956.0 当前持仓量 196.0 当前持仓成本 34.29615696\n",
      "date 2020-12-29 open 31.12308732 high 32.67586608 low 30.98806308 volume 4017.0 当前持仓量 196.0 当前持仓成本 34.29615696\n",
      "date 2020-12-30 open 31.46064792 high 31.66318428 low 30.85303884 volume 2559.0 当前持仓量 196.0 当前持仓成本 34.29615696\n",
      "date 2020-12-31 open 31.25811156 high 31.59567216 low 31.19059944 volume 2026.0 当前持仓量 196.0 当前持仓成本 34.29615696\n",
      "date 2021-01-04 open 31.19059944 high 31.19059944 low 29.90786916 volume 3688.0 当前持仓量 196.0 当前持仓成本 34.29615696\n",
      "date 2021-01-05 open 29.90786916 high 30.17791764 low 29.50279644 volume 2510.0 当前持仓量 196.0 当前持仓成本 34.29615696\n",
      "date 2021-01-06 open 30.0428934 high 30.380453999999997 low 29.84035704 volume 1625.0 当前持仓量 196.0 当前持仓成本 34.29615696\n",
      "date 2021-01-07 open 30.0428934 high 30.24542976 low 29.09772372 volume 3147.0 当前持仓量 196.0 当前持仓成本 34.29615696\n",
      "date 2021-01-08 open 29.705332799999997 high 30.11040552 low 29.50279644 volume 1449.0 当前持仓量 196.0 当前持仓成本 34.29615696\n",
      "date 2021-01-11 open 29.97538128 high 30.24542976 low 29.23274796 volume 2552.0 当前持仓量 196.0 当前持仓成本 34.29615696\n",
      "date 2021-01-12 open 29.63782068 high 29.77284492 low 29.30026008 volume 1209.0 当前持仓量 196.0 当前持仓成本 34.29615696\n",
      "date 2021-01-13 open 29.57030856 high 29.90786916 low 29.16523584 volume 2069.0 当前持仓量 196.0 当前持仓成本 34.29615696\n",
      "date 2021-01-14 open 29.84035704 high 30.92055096 low 29.705332799999997 volume 2466.0 当前持仓量 196.0 当前持仓成本 34.29615696\n",
      "date 2021-01-15 open 30.380453999999997 high 30.92055096 low 30.17791764 volume 2073.0 当前持仓量 196.0 当前持仓成本 34.29615696\n",
      "2021-01-18, SELL EXECUTED, ref:2609, Price: 30.3805, Size: -196.00, Remsize: 0.00, Cost: 6722.0468, Stock: 600466.SH\n",
      "date 2021-01-18 open 30.380453999999997 high 30.7180146 low 30.24542976 volume 2287.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2021-01-19 open 30.380453999999997 high 31.93323276 low 30.0428934 volume 3960.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2021-01-20 open 31.055575199999996 high 31.055575199999996 low 30.380453999999997 volume 2158.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2021-01-21 open 30.51547824 high 30.65050248 low 30.24542976 volume 1793.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2021-01-22 open 30.24542976 high 30.31294188 low 29.50279644 volume 1718.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "date 2021-01-25 open 29.57030856 high 29.57030856 low 28.82767524 volume 2364.0 当前持仓量 0.0 当前持仓成本 0.0\n",
      "2021-01-26, BUY EXECUTED, ref:2610，Price: 28.9627, Size: 83.00, Remsize: 917.00, Cost: 2403.9041, Stock: 600466.SH\n",
      "date 2021-01-26 open 28.96269948 high 29.23274796 low 28.692651 volume 996.0 当前持仓量 83.0 当前持仓成本 28.96269948\n",
      "date 2021-01-27 open 28.76016312 high 29.23274796 low 28.692651 volume 1292.0 当前持仓量 83.0 当前持仓成本 28.96269948\n",
      "date 2021-01-28 open 28.82767524 high 28.82767524 low 28.55762676 volume 1282.0 当前持仓量 83.0 当前持仓成本 28.96269948\n"
     ]
    }
   ],
   "source": [
    "class TestStrategy(bt.Strategy):\n",
    "  \n",
    "    params=(('period1',5),\n",
    "            ('period2',10),)   #全局设定均线周期\n",
    "    \n",
    "    def log(self, txt, dt=None):\n",
    "        ''' Logging function fot this strategy'''\n",
    "        dt = dt or self.datas[0].datetime.date(0)\n",
    "        print('%s, %s' % (dt.isoformat(), txt))\n",
    "    \n",
    "    def __init__(self):\n",
    "        #计算均线\n",
    "        self.ma1 = bt.indicators.SMA(self.data0, period=self.p.period1)\n",
    "        self.ma2 = bt.indicators.SMA(self.data0, period=self.p.period2)\n",
    "        #计算2条均线交叉信号：ma2 上穿 ma1 时，取值为 +1； ma2 下穿 ma1 时，取值为 -1\n",
    "        self.crossover = bt.indicators.CrossOver(self.ma2, self.ma1) \n",
    "        # 初始化订单\n",
    "        self.order = None\n",
    "        \n",
    "    def next(self):\n",
    "         # 打印日志\n",
    "       \n",
    "        print('date', self.datas[0].datetime.date(0),\n",
    "              'open', self.data0.open[0],\n",
    "              'high', self.data0.high[0],\n",
    "              'low', self.data0.low[0],\n",
    "              'volume', self.data0.volume[0],\n",
    "              '当前持仓量', self.broker.getposition(self.data).size,\n",
    "              '当前持仓成本', self.broker.getposition(self.data).price)\n",
    "    \n",
    "        # 取消之前未执行的订单\n",
    "        if self.order:  \n",
    "            self.cancel(self.order)  \n",
    "        \n",
    "        # 检查是否有持仓\n",
    "        if not self.position:  \n",
    "            # 10日均线上穿5日均线，买入\n",
    "            if self.crossover > 0:             \n",
    "                self.order = self.buy(size=1000) # 以下一日开盘价买入100股\n",
    "        # # 10日均线下穿5日均线，卖出\n",
    "        elif self.crossover < 0:            \n",
    "            self.order = self.close() # 平仓，以下一日开盘价卖出\n",
    "            \n",
    "    \n",
    "    def notify_order(self, order):\n",
    "        # 未被处理的订单\n",
    "        if order.status in [order.Created, order.Submitted, order.Accepted, order.Canceled, order.Margin]:\n",
    "            return\n",
    "        # 已被处理的订单\n",
    "        if order.status in [order.Partial, order.Completed]:\n",
    "            if order.isbuy():\n",
    "                self.log(\n",
    "                    'BUY EXECUTED, ref:%.0f，Price: %.4f, Size: %.2f, Remsize: %.2f, Cost: %.4f, Stock: %s' %\n",
    "                    (order.ref,\n",
    "                     order.executed.price,\n",
    "                     order.executed.size,\n",
    "                     order.executed.remsize, # 剩余 数量\n",
    "                     order.executed.value,\n",
    "                     order.data._name))\n",
    "            else:  # Sell\n",
    "                self.log('SELL EXECUTED, ref:%.0f, Price: %.4f, Size: %.2f, Remsize: %.2f, Cost: %.4f, Stock: %s' %\n",
    "                        (order.ref,\n",
    "                        order.executed.price,\n",
    "                        order.executed.size,\n",
    "                        order.executed.remsize, # 剩余 数量\n",
    "                        order.executed.value,\n",
    "                        order.data._name))\n",
    "                \n",
    "# 实例化大脑\n",
    "cerebro7 = bt.Cerebro()\n",
    "# 设置初始资金\n",
    "cerebro7.broker.set_cash(1000000)\n",
    "# 设置成交量限制\n",
    "cerebro7.broker.set_filler(bt.broker.fillers.BarPointPerc(minmov=0.1, perc=50))\n",
    "# 加载数据\n",
    "datafeed1 = bt.feeds.PandasData(dataname=data1_, fromdate=datetime.datetime(2019,1,2), todate=datetime.datetime(2021,1,28))\n",
    "cerebro7.adddata(datafeed1, name='600466.SH')\n",
    "# 添加策略\n",
    "cerebro7.addstrategy(TestStrategy)            \n",
    "# 启动回测\n",
    "result = cerebro7.run()  "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 82,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "12.0"
      ]
     },
     "execution_count": 82,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "parts = (32.94151482 - 31.83112668 + 0.1)  // 0.1 \n",
    "parts"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 86,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "36.208333333333336"
      ]
     },
     "execution_count": 86,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "(869.0 / parts) * 50 / 100"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 交易时机的管理"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 正常模式：当日收盘后下单，次日以开盘价成交"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 120,
   "metadata": {
    "collapsed": true,
    "jupyter": {
     "outputs_hidden": true
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2019-01-16 Send Buy, open 33.00320305\n",
      "2019-01-17 Buy Executed at price 32.63307367\n",
      "2019-01-28 Send Sell, open 33.311644199999996\n",
      "2019-01-29 Sell Executed at price 33.928526500000004\n",
      "2019-02-21 Send Buy, open 35.47073225\n",
      "2019-02-22 Buy Executed at price 34.91553818\n",
      "2019-02-26 Send Sell, open 37.07462623\n",
      "2019-02-27 Sell Executed at price 37.50644384\n",
      "2019-03-14 Send Buy, open 41.82461994\n",
      "2019-03-15 Buy Executed at price 41.20773764\n",
      "2019-03-15 Send Sell, open 41.20773764\n",
      "2019-03-18 Sell Executed at price 44.10708445\n",
      "2019-03-29 Send Buy, open 43.55189038\n",
      "2019-04-01 Buy Executed at price 46.14279604\n",
      "2019-04-02 Send Sell, open 48.1168194\n",
      "2019-04-03 Sell Executed at price 47.06811949\n",
      "2019-04-16 Send Buy, open 47.56162533\n",
      "2019-04-17 Buy Executed at price 46.63630188\n",
      "2019-05-17 Send Sell, open 40.93009102\n",
      "2019-05-20 Sell Executed at price 39.77351074\n",
      "2019-05-20 Send Buy, open 39.77351074\n",
      "2019-05-21 Buy Executed at price 39.25947506\n",
      "2019-06-12 Send Sell, open 39.90201966\n",
      "2019-06-13 Sell Executed at price 40.09478304\n",
      "2019-07-01 Send Buy, open 40.4803098\n",
      "2019-07-02 Buy Executed at price 40.4803098\n",
      "2019-07-05 Send Sell, open 41.765399\n",
      "2019-07-08 Sell Executed at price 40.93009102\n",
      "2019-07-10 Send Buy, open 39.8377652\n",
      "2019-07-11 Buy Executed at price 38.48842154\n",
      "2019-07-17 Send Sell, open 41.444126700000005\n",
      "2019-07-18 Sell Executed at price 41.187108859999995\n",
      "2019-07-26 Send Buy, open 40.03052858\n",
      "2019-07-29 Buy Executed at price 41.25136332\n",
      "2019-08-20 Send Sell, open 37.910131400000004\n",
      "2019-08-21 Sell Executed at price 37.84587694\n",
      "2019-08-30 Send Buy, open 38.29565816\n",
      "2019-09-02 Buy Executed at price 36.68929666\n",
      "2019-09-09 Send Sell, open 39.58074736\n",
      "2019-09-10 Sell Executed at price 39.58074736\n",
      "2019-09-25 Send Buy, open 39.45223844\n",
      "2019-09-26 Buy Executed at price 39.58074736\n",
      "2019-10-10 Send Sell, open 41.57263562\n",
      "2019-10-11 Sell Executed at price 43.0504882\n",
      "2019-10-23 Send Buy, open 42.15092576\n",
      "2019-10-24 Buy Executed at price 41.37987224\n",
      "2019-11-06 Send Sell, open 43.62877834\n",
      "2019-11-07 Sell Executed at price 42.21518022\n",
      "2019-11-12 Send Buy, open 41.05859994\n",
      "2019-11-13 Buy Executed at price 40.99434548\n",
      "2019-11-20 Send Sell, open 42.60070698\n",
      "2019-11-21 Sell Executed at price 42.79347036\n",
      "2019-12-02 Send Buy, open 42.66496144\n",
      "2019-12-03 Buy Executed at price 43.6930328\n",
      "2019-12-03 Send Sell, open 43.6930328\n",
      "2019-12-04 Sell Executed at price 44.0143051\n",
      "2019-12-26 Send Buy, open 45.17088538\n",
      "2019-12-27 Buy Executed at price 45.49215768\n",
      "2019-12-31 Send Sell, open 46.00619336\n",
      "2020-01-02 Sell Executed at price 48.06233608\n",
      "2020-01-17 Send Buy, open 47.80531824\n",
      "2020-01-20 Buy Executed at price 47.09851918\n",
      "2020-02-13 Send Sell, open 42.66496144\n",
      "2020-02-14 Sell Executed at price 44.27132294\n",
      "2020-02-24 Send Buy, open 43.43601496\n",
      "2020-02-25 Buy Executed at price 41.63689008\n",
      "2020-03-04 Send Sell, open 43.75728726\n",
      "2020-03-05 Sell Executed at price 45.36364876\n",
      "2020-03-11 Send Buy, open 43.050488200000004\n",
      "2020-03-12 Buy Executed at price 42.79347036\n",
      "2020-03-30 Send Sell, open 39.5164929\n",
      "2020-03-31 Sell Executed at price 40.1590375\n",
      "2020-04-07 Send Buy, open 39.25947506\n",
      "2020-04-08 Buy Executed at price 39.25947506\n",
      "2020-04-10 Send Sell, open 39.77351074\n",
      "2020-04-13 Sell Executed at price 39.45223844\n",
      "2020-04-20 Send Buy, open 39.58074736\n",
      "2020-04-21 Buy Executed at price 37.910131400000004\n",
      "2020-05-11 Send Sell, open 36.36802436\n",
      "2020-05-12 Sell Executed at price 35.9824976\n",
      "2020-05-12 Send Buy, open 35.9824976\n",
      "2020-05-13 Buy Executed at price 35.21144408\n",
      "2020-06-02 Send Sell, open 33.28381028\n",
      "2020-06-03 Sell Executed at price 34.31188164\n",
      "2020-06-11 Send Buy, open 33.21955582\n",
      "2020-06-12 Buy Executed at price 32.25573892\n",
      "2020-06-19 Send Sell, open 34.76166286\n",
      "2020-06-22 Sell Executed at price 34.63315394\n",
      "2020-07-15 Send Buy, open 39.69712656\n",
      "2020-07-16 Buy Executed at price 38.75195688\n",
      "2020-08-05 Send Sell, open 36.92912964\n",
      "2020-08-06 Sell Executed at price 36.456544799999996\n",
      "2020-08-11 Send Buy, open 36.456544799999996\n",
      "2020-08-12 Buy Executed at price 35.781423600000004\n",
      "2020-08-17 Send Sell, open 36.99664176\n",
      "2020-08-18 Sell Executed at price 37.67176296\n",
      "2020-08-25 Send Buy, open 36.65908116\n",
      "2020-08-26 Buy Executed at price 36.32152056\n",
      "2020-09-02 Send Sell, open 36.99664176\n",
      "2020-09-03 Sell Executed at price 36.86161752\n",
      "2020-09-08 Send Buy, open 35.781423600000004\n",
      "2020-09-09 Buy Executed at price 35.71391148\n",
      "2020-09-15 Send Sell, open 36.1189842\n",
      "2020-09-16 Sell Executed at price 36.38903268\n",
      "2020-09-25 Send Buy, open 35.98395996\n",
      "2020-09-28 Buy Executed at price 34.63371756\n",
      "2020-10-15 Send Sell, open 34.70122968\n",
      "2020-10-16 Sell Executed at price 34.49869332\n",
      "2020-10-20 Send Buy, open 34.49869332\n",
      "2020-10-21 Buy Executed at price 34.29615696\n",
      "2020-11-06 Send Sell, open 34.0936206\n",
      "2020-11-09 Sell Executed at price 34.22864484\n",
      "2020-11-30 Send Buy, open 35.24132664\n",
      "2020-12-01 Buy Executed at price 34.83625392\n",
      "2020-12-01 Send Sell, open 34.83625392\n",
      "2020-12-02 Sell Executed at price 35.1063024\n",
      "2020-12-04 Send Buy, open 34.768741799999994\n",
      "2020-12-07 Buy Executed at price 34.29615696\n",
      "2021-01-15 Send Sell, open 30.380453999999997\n",
      "2021-01-18 Sell Executed at price 30.380453999999997\n",
      "2021-01-25 Send Buy, open 29.57030856\n",
      "2021-01-26 Buy Executed at price 28.96269948\n"
     ]
    }
   ],
   "source": [
    "class TestStrategy(bt.Strategy):\n",
    "  \n",
    "    params=(('period1',5),\n",
    "            ('period2',10),)   #全局设定均线周期\n",
    "    \n",
    "    def log(self, txt, dt=None):\n",
    "        ''' Logging function fot this strategy'''\n",
    "        dt = dt or self.datas[0].datetime.date(0)\n",
    "        print('%s, %s' % (dt.isoformat(), txt))\n",
    "    \n",
    "    def __init__(self):\n",
    "        #计算均线\n",
    "        self.ma1 = bt.indicators.SMA(self.data0, period=self.p.period1)\n",
    "        self.ma2 = bt.indicators.SMA(self.data0, period=self.p.period2)\n",
    "        #计算2条均线交叉信号：ma2 上穿 ma1 时，取值为 +1； ma2 下穿 ma1 时，取值为 -1\n",
    "        self.crossover = bt.indicators.CrossOver(self.ma2, self.ma1) \n",
    "        # 初始化订单\n",
    "        self.order = None\n",
    "        \n",
    "    def next(self):\n",
    "        # 取消之前未执行的订单\n",
    "        if self.order:  \n",
    "            self.cancel(self.order)  \n",
    "        # 检查是否有持仓\n",
    "        if not self.position:  \n",
    "            # 10日均线上穿5日均线，买入\n",
    "            if self.crossover > 0:  \n",
    "                print('{} Send Buy, open {}'.format(self.data.datetime.date(),self.data.open[0]))\n",
    "                self.order = self.buy(size=100) # 以下一日开盘价买入100股\n",
    "        # # 10日均线下穿5日均线，卖出\n",
    "        elif self.crossover < 0:   \n",
    "            print('{} Send Sell, open {}'.format(self.data.datetime.date(),self.data.open[0]))\n",
    "            self.order = self.close() # 平仓，以下一日开盘价卖出\n",
    "    \n",
    "    def notify_order(self, order):\n",
    "        if order.status != order.Completed:\n",
    "            return\n",
    "        self.order = None\n",
    "        print('{} {} Executed at price {}'.format(\n",
    "            bt.num2date(order.executed.dt).date(),\n",
    "            'Buy' * order.isbuy() or 'Sell', order.executed.price))        \n",
    "\n",
    "    \n",
    "# 实例化大脑\n",
    "cerebro5= bt.Cerebro(cheat_on_open=False)\n",
    "# 设置初始资金\n",
    "cerebro5.broker.set_cash(1000000000000)\n",
    "# 加载数据\n",
    "datafeed1 = bt.feeds.PandasData(dataname=data1, fromdate=datetime.datetime(2019,1,2), todate=datetime.datetime(2021,1,28))\n",
    "cerebro5.adddata(datafeed1, name='600466.SH')\n",
    "# 添加策略\n",
    "cerebro5.addstrategy(TestStrategy)            \n",
    "# 启动回测\n",
    "result = cerebro5.run()  "
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## cheat_on_open"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 121,
   "metadata": {
    "collapsed": true,
    "jupyter": {
     "outputs_hidden": true
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2019-01-17 Send Buy, open 32.63307367\n",
      "2019-01-17 Buy Executed at price 32.63307367\n",
      "2019-01-29 Send Sell, open 33.928526500000004\n",
      "2019-01-29 Sell Executed at price 33.928526500000004\n",
      "2019-02-22 Send Buy, open 34.91553818\n",
      "2019-02-22 Buy Executed at price 34.91553818\n",
      "2019-02-27 Send Sell, open 37.50644384\n",
      "2019-02-27 Sell Executed at price 37.50644384\n",
      "2019-03-15 Send Buy, open 41.20773764\n",
      "2019-03-15 Buy Executed at price 41.20773764\n",
      "2019-03-18 Send Sell, open 44.10708445\n",
      "2019-03-18 Sell Executed at price 44.10708445\n",
      "2019-04-01 Send Buy, open 46.14279604\n",
      "2019-04-01 Buy Executed at price 46.14279604\n",
      "2019-04-03 Send Sell, open 47.06811949\n",
      "2019-04-03 Sell Executed at price 47.06811949\n",
      "2019-04-17 Send Buy, open 46.63630188\n",
      "2019-04-17 Buy Executed at price 46.63630188\n",
      "2019-05-20 Send Sell, open 39.77351074\n",
      "2019-05-20 Sell Executed at price 39.77351074\n",
      "2019-05-21 Send Buy, open 39.25947506\n",
      "2019-05-21 Buy Executed at price 39.25947506\n",
      "2019-06-13 Send Sell, open 40.09478304\n",
      "2019-06-13 Sell Executed at price 40.09478304\n",
      "2019-07-02 Send Buy, open 40.4803098\n",
      "2019-07-02 Buy Executed at price 40.4803098\n",
      "2019-07-08 Send Sell, open 40.93009102\n",
      "2019-07-08 Sell Executed at price 40.93009102\n",
      "2019-07-11 Send Buy, open 38.48842154\n",
      "2019-07-11 Buy Executed at price 38.48842154\n",
      "2019-07-18 Send Sell, open 41.18710886\n",
      "2019-07-18 Sell Executed at price 41.187108859999995\n",
      "2019-07-29 Send Buy, open 41.25136332\n",
      "2019-07-29 Buy Executed at price 41.25136332\n",
      "2019-08-21 Send Sell, open 37.84587694\n",
      "2019-08-21 Sell Executed at price 37.84587694\n",
      "2019-09-02 Send Buy, open 36.68929666\n",
      "2019-09-02 Buy Executed at price 36.68929666\n",
      "2019-09-10 Send Sell, open 39.58074736\n",
      "2019-09-10 Sell Executed at price 39.58074736\n",
      "2019-09-26 Send Buy, open 39.58074736\n",
      "2019-09-26 Buy Executed at price 39.58074736\n",
      "2019-10-11 Send Sell, open 43.050488200000004\n",
      "2019-10-11 Sell Executed at price 43.0504882\n",
      "2019-10-24 Send Buy, open 41.37987224\n",
      "2019-10-24 Buy Executed at price 41.37987224\n",
      "2019-11-07 Send Sell, open 42.21518022\n",
      "2019-11-07 Sell Executed at price 42.21518022\n",
      "2019-11-13 Send Buy, open 40.99434548\n",
      "2019-11-13 Buy Executed at price 40.99434548\n",
      "2019-11-21 Send Sell, open 42.79347036\n",
      "2019-11-21 Sell Executed at price 42.79347036\n",
      "2019-12-03 Send Buy, open 43.6930328\n",
      "2019-12-03 Buy Executed at price 43.6930328\n",
      "2019-12-04 Send Sell, open 44.0143051\n",
      "2019-12-04 Sell Executed at price 44.0143051\n",
      "2019-12-27 Send Buy, open 45.49215768\n",
      "2019-12-27 Buy Executed at price 45.49215768\n",
      "2020-01-02 Send Sell, open 48.06233608\n",
      "2020-01-02 Sell Executed at price 48.06233608\n",
      "2020-01-20 Send Buy, open 47.09851918\n",
      "2020-01-20 Buy Executed at price 47.09851918\n",
      "2020-02-14 Send Sell, open 44.27132294\n",
      "2020-02-14 Sell Executed at price 44.27132294\n",
      "2020-02-25 Send Buy, open 41.63689008\n",
      "2020-02-25 Buy Executed at price 41.63689008\n",
      "2020-03-05 Send Sell, open 45.36364876\n",
      "2020-03-05 Sell Executed at price 45.36364876\n",
      "2020-03-12 Send Buy, open 42.79347036\n",
      "2020-03-12 Buy Executed at price 42.79347036\n",
      "2020-03-31 Send Sell, open 40.1590375\n",
      "2020-03-31 Sell Executed at price 40.1590375\n",
      "2020-04-08 Send Buy, open 39.25947506\n",
      "2020-04-08 Buy Executed at price 39.25947506\n",
      "2020-04-13 Send Sell, open 39.45223844\n",
      "2020-04-13 Sell Executed at price 39.45223844\n",
      "2020-04-21 Send Buy, open 37.910131400000004\n",
      "2020-04-21 Buy Executed at price 37.910131400000004\n",
      "2020-05-12 Send Sell, open 35.9824976\n",
      "2020-05-12 Sell Executed at price 35.9824976\n",
      "2020-05-13 Send Buy, open 35.21144408\n",
      "2020-05-13 Buy Executed at price 35.21144408\n",
      "2020-06-03 Send Sell, open 34.31188164\n",
      "2020-06-03 Sell Executed at price 34.31188164\n",
      "2020-06-12 Send Buy, open 32.25573892\n",
      "2020-06-12 Buy Executed at price 32.25573892\n",
      "2020-06-22 Send Sell, open 34.63315394\n",
      "2020-06-22 Sell Executed at price 34.63315394\n",
      "2020-07-16 Send Buy, open 38.75195688\n",
      "2020-07-16 Buy Executed at price 38.75195688\n",
      "2020-08-06 Send Sell, open 36.456544799999996\n",
      "2020-08-06 Sell Executed at price 36.456544799999996\n",
      "2020-08-12 Send Buy, open 35.781423600000004\n",
      "2020-08-12 Buy Executed at price 35.781423600000004\n",
      "2020-08-18 Send Sell, open 37.67176296\n",
      "2020-08-18 Sell Executed at price 37.67176296\n",
      "2020-08-26 Send Buy, open 36.32152056\n",
      "2020-08-26 Buy Executed at price 36.32152056\n",
      "2020-09-03 Send Sell, open 36.86161752\n",
      "2020-09-03 Sell Executed at price 36.86161752\n",
      "2020-09-09 Send Buy, open 35.71391148\n",
      "2020-09-09 Buy Executed at price 35.71391148\n",
      "2020-09-16 Send Sell, open 36.38903268\n",
      "2020-09-16 Sell Executed at price 36.38903268\n",
      "2020-09-28 Send Buy, open 34.63371756\n",
      "2020-09-28 Buy Executed at price 34.63371756\n",
      "2020-10-16 Send Sell, open 34.49869332\n",
      "2020-10-16 Sell Executed at price 34.49869332\n",
      "2020-10-21 Send Buy, open 34.29615696\n",
      "2020-10-21 Buy Executed at price 34.29615696\n",
      "2020-11-09 Send Sell, open 34.22864484\n",
      "2020-11-09 Sell Executed at price 34.22864484\n",
      "2020-12-01 Send Buy, open 34.83625392\n",
      "2020-12-01 Buy Executed at price 34.83625392\n",
      "2020-12-02 Send Sell, open 35.1063024\n",
      "2020-12-02 Sell Executed at price 35.1063024\n",
      "2020-12-07 Send Buy, open 34.29615696\n",
      "2020-12-07 Buy Executed at price 34.29615696\n",
      "2021-01-18 Send Sell, open 30.380453999999997\n",
      "2021-01-18 Sell Executed at price 30.380453999999997\n",
      "2021-01-26 Send Buy, open 28.96269948\n",
      "2021-01-26 Buy Executed at price 28.96269948\n"
     ]
    }
   ],
   "source": [
    "class TestStrategy(bt.Strategy):\n",
    "  \n",
    "    params=(('period1',5),\n",
    "            ('period2',10),)   #全局设定均线周期\n",
    "    \n",
    "    def log(self, txt, dt=None):\n",
    "        ''' Logging function fot this strategy'''\n",
    "        dt = dt or self.datas[0].datetime.date(0)\n",
    "        print('%s, %s' % (dt.isoformat(), txt))\n",
    "    \n",
    "    def __init__(self):\n",
    "        #计算均线\n",
    "        self.ma1 = bt.indicators.SMA(self.data0, period=self.p.period1)\n",
    "        self.ma2 = bt.indicators.SMA(self.data0, period=self.p.period2)\n",
    "        #计算2条均线交叉信号：ma2 上穿 ma1 时，取值为 +1； ma2 下穿 ma1 时，取值为 -1\n",
    "        self.crossover = bt.indicators.CrossOver(self.ma2, self.ma1) \n",
    "        # 初始化订单\n",
    "        self.order = None\n",
    "        \n",
    "    def next_open(self):\n",
    "        # 取消之前未执行的订单\n",
    "        if self.order:  \n",
    "            self.cancel(self.order)  \n",
    "        # 检查是否有持仓\n",
    "        if not self.position:  \n",
    "            # 10日均线上穿5日均线，买入\n",
    "            if self.crossover > 0:  \n",
    "                print('{} Send Buy, open {}'.format(self.data.datetime.date(),self.data.open[0]))\n",
    "                self.order = self.buy(size=100) # 以下一日开盘价买入100股\n",
    "        # # 10日均线下穿5日均线，卖出\n",
    "        elif self.crossover < 0:  \n",
    "            print('{} Send Sell, open {}'.format(self.data.datetime.date(),self.data.open[0]))\n",
    "            self.order = self.close() # 平仓，以下一日开盘价卖出\n",
    "    \n",
    "    def notify_order(self, order):\n",
    "        if order.status != order.Completed:\n",
    "            return\n",
    "        self.order = None\n",
    "        print('{} {} Executed at price {}'.format(\n",
    "            bt.num2date(order.executed.dt).date(),\n",
    "            'Buy' * order.isbuy() or 'Sell', order.executed.price))        \n",
    "\n",
    "    \n",
    "# 实例化大脑\n",
    "cerebro5= bt.Cerebro(cheat_on_open=True)\n",
    "# 设置初始资金\n",
    "cerebro5.broker.set_cash(1000000000000)\n",
    "# 加载数据\n",
    "datafeed1 = bt.feeds.PandasData(dataname=data1, fromdate=datetime.datetime(2019,1,2), todate=datetime.datetime(2021,1,28))\n",
    "cerebro5.adddata(datafeed1, name='600466.SH')\n",
    "# 添加策略\n",
    "cerebro5.addstrategy(TestStrategy)            \n",
    "# 启动回测\n",
    "result = cerebro5.run()  "
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Cheat-On-Close"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 122,
   "metadata": {
    "collapsed": true,
    "jupyter": {
     "outputs_hidden": true
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2019-01-16 Send Buy, close 32.63307367\n",
      "2019-01-16 Buy Executed at price 32.63307367\n",
      "2019-01-28 Send Sell, close 33.86683827\n",
      "2019-01-28 Sell Executed at price 33.86683827\n",
      "2019-02-21 Send Buy, close 34.85384995\n",
      "2019-02-21 Buy Executed at price 34.85384995\n",
      "2019-02-26 Send Sell, close 37.75319676\n",
      "2019-02-26 Sell Executed at price 37.75319676\n",
      "2019-03-14 Send Buy, close 41.20773764\n",
      "2019-03-14 Buy Executed at price 41.20773764\n",
      "2019-03-15 Send Sell, close 42.62656693\n",
      "2019-03-15 Sell Executed at price 42.626566929999996\n",
      "2019-03-29 Send Buy, close 45.52591374\n",
      "2019-03-29 Buy Executed at price 45.52591373999999\n",
      "2019-04-02 Send Sell, close 47.43824887\n",
      "2019-04-02 Sell Executed at price 47.43824887000001\n",
      "2019-04-16 Send Buy, close 46.63630188\n",
      "2019-04-16 Buy Executed at price 46.63630188\n",
      "2019-05-17 Send Sell, close 39.96627412\n",
      "2019-05-17 Sell Executed at price 39.96627412\n",
      "2019-05-20 Send Buy, close 39.38798398\n",
      "2019-05-20 Buy Executed at price 39.38798398\n",
      "2019-06-12 Send Sell, close 39.96627412\n",
      "2019-06-12 Sell Executed at price 39.96627412\n",
      "2019-07-01 Send Buy, close 40.73732764\n",
      "2019-07-01 Buy Executed at price 40.73732764\n",
      "2019-07-05 Send Sell, close 41.1228544\n",
      "2019-07-05 Sell Executed at price 41.12285440000001\n",
      "2019-07-10 Send Buy, close 37.71736802\n",
      "2019-07-10 Buy Executed at price 37.71736802\n",
      "2019-07-17 Send Sell, close 41.18710886\n",
      "2019-07-17 Sell Executed at price 41.187108859999995\n",
      "2019-07-26 Send Buy, close 40.99434548\n",
      "2019-07-26 Buy Executed at price 40.99434548\n",
      "2019-08-20 Send Sell, close 38.10289478\n",
      "2019-08-20 Sell Executed at price 38.10289478\n",
      "2019-08-30 Send Buy, close 36.68929666\n",
      "2019-08-30 Buy Executed at price 36.68929666\n",
      "2019-09-09 Send Sell, close 39.58074736\n",
      "2019-09-09 Sell Executed at price 39.58074736\n",
      "2019-09-25 Send Buy, close 39.70925628\n",
      "2019-09-25 Buy Executed at price 39.70925628\n",
      "2019-10-10 Send Sell, close 42.407943599999996\n",
      "2019-10-10 Sell Executed at price 42.407943599999996\n",
      "2019-10-23 Send Buy, close 41.1228544\n",
      "2019-10-23 Buy Executed at price 41.12285440000001\n",
      "2019-11-06 Send Sell, close 42.02241684\n",
      "2019-11-06 Sell Executed at price 42.02241684\n",
      "2019-11-12 Send Buy, close 40.73732764\n",
      "2019-11-12 Buy Executed at price 40.73732764\n",
      "2019-11-20 Send Sell, close 42.79347036\n",
      "2019-11-20 Sell Executed at price 42.79347036\n",
      "2019-12-02 Send Buy, close 43.82154172\n",
      "2019-12-02 Buy Executed at price 43.82154172\n",
      "2019-12-03 Send Sell, close 44.52834078\n",
      "2019-12-03 Sell Executed at price 44.52834078\n",
      "2019-12-26 Send Buy, close 45.55641214\n",
      "2019-12-26 Buy Executed at price 45.55641214\n",
      "2019-12-31 Send Sell, close 47.35553702\n",
      "2019-12-31 Sell Executed at price 47.35553702\n",
      "2020-01-17 Send Buy, close 47.2270281\n",
      "2020-01-17 Buy Executed at price 47.2270281\n",
      "2020-02-13 Send Sell, close 43.95005064\n",
      "2020-02-13 Sell Executed at price 43.95005064\n",
      "2020-02-24 Send Buy, close 42.47219806\n",
      "2020-02-24 Buy Executed at price 42.472198060000004\n",
      "2020-03-04 Send Sell, close 45.74917552\n",
      "2020-03-04 Sell Executed at price 45.74917552\n",
      "2020-03-11 Send Buy, close 43.24325158\n",
      "2020-03-11 Buy Executed at price 43.24325158\n",
      "2020-03-30 Send Sell, close 39.70925628\n",
      "2020-03-30 Sell Executed at price 39.70925628\n",
      "2020-04-07 Send Buy, close 39.45223844\n",
      "2020-04-07 Buy Executed at price 39.45223844\n",
      "2020-04-10 Send Sell, close 39.45223844\n",
      "2020-04-10 Sell Executed at price 39.45223844\n",
      "2020-04-20 Send Buy, close 38.2314037\n",
      "2020-04-20 Buy Executed at price 38.2314037\n",
      "2020-05-11 Send Sell, close 35.9824976\n",
      "2020-05-11 Sell Executed at price 35.9824976\n",
      "2020-05-12 Send Buy, close 35.339953\n",
      "2020-05-12 Buy Executed at price 35.339953\n",
      "2020-06-02 Send Sell, close 34.24762718\n",
      "2020-06-02 Sell Executed at price 34.24762718\n",
      "2020-06-11 Send Buy, close 32.769774600000005\n",
      "2020-06-11 Buy Executed at price 32.769774600000005\n",
      "2020-06-19 Send Sell, close 34.63315394\n",
      "2020-06-19 Sell Executed at price 34.63315394\n",
      "2020-07-15 Send Buy, close 38.88698112\n",
      "2020-07-15 Buy Executed at price 38.88698112\n",
      "2020-08-05 Send Sell, close 36.456544799999996\n",
      "2020-08-05 Sell Executed at price 36.456544799999996\n",
      "2020-08-11 Send Buy, close 35.781423600000004\n",
      "2020-08-11 Buy Executed at price 35.781423600000004\n",
      "2020-08-17 Send Sell, close 37.67176296\n",
      "2020-08-17 Sell Executed at price 37.67176296\n",
      "2020-08-25 Send Buy, close 36.25400844\n",
      "2020-08-25 Buy Executed at price 36.25400844\n",
      "2020-09-02 Send Sell, close 36.7941054\n",
      "2020-09-02 Sell Executed at price 36.7941054\n",
      "2020-09-08 Send Buy, close 35.98395996\n",
      "2020-09-08 Buy Executed at price 35.98395996\n",
      "2020-09-15 Send Sell, close 36.38903268\n",
      "2020-09-15 Sell Executed at price 36.38903268\n",
      "2020-09-25 Send Buy, close 34.70122968\n",
      "2020-09-25 Buy Executed at price 34.70122968\n",
      "2020-10-15 Send Sell, close 34.63371756\n",
      "2020-10-15 Sell Executed at price 34.63371756\n",
      "2020-10-20 Send Buy, close 34.16113272\n",
      "2020-10-20 Buy Executed at price 34.16113272\n",
      "2020-11-06 Send Sell, close 34.22864484\n",
      "2020-11-06 Sell Executed at price 34.22864484\n",
      "2020-11-30 Send Buy, close 34.83625392\n",
      "2020-11-30 Buy Executed at price 34.83625392\n",
      "2020-12-01 Send Sell, close 35.1063024\n",
      "2020-12-01 Sell Executed at price 35.1063024\n",
      "2020-12-04 Send Buy, close 34.36366908\n",
      "2020-12-04 Buy Executed at price 34.36366908\n",
      "2021-01-15 Send Sell, close 30.44796612\n",
      "2021-01-15 Sell Executed at price 30.44796612\n",
      "2021-01-25 Send Buy, close 28.96269948\n",
      "2021-01-25 Buy Executed at price 28.96269948\n"
     ]
    }
   ],
   "source": [
    "class TestStrategy(bt.Strategy):\n",
    "  \n",
    "    params=(('period1',5),\n",
    "            ('period2',10),)   #全局设定均线周期\n",
    "    \n",
    "    def log(self, txt, dt=None):\n",
    "        ''' Logging function fot this strategy'''\n",
    "        dt = dt or self.datas[0].datetime.date(0)\n",
    "        print('%s, %s' % (dt.isoformat(), txt))\n",
    "    \n",
    "    def __init__(self):\n",
    "        #计算均线\n",
    "        self.ma1 = bt.indicators.SMA(self.data0, period=self.p.period1)\n",
    "        self.ma2 = bt.indicators.SMA(self.data0, period=self.p.period2)\n",
    "        #计算2条均线交叉信号：ma2 上穿 ma1 时，取值为 +1； ma2 下穿 ma1 时，取值为 -1\n",
    "        self.crossover = bt.indicators.CrossOver(self.ma2, self.ma1) \n",
    "        # 初始化订单\n",
    "        self.order = None\n",
    "        \n",
    "    def next(self):\n",
    "        # 取消之前未执行的订单\n",
    "        if self.order:  \n",
    "            self.cancel(self.order)  \n",
    "        \n",
    "        # 检查是否有持仓\n",
    "        if not self.position:  \n",
    "            # 10日均线上穿5日均线，买入\n",
    "            if self.crossover > 0:  \n",
    "                print('{} Send Buy, close {}'.format(self.data.datetime.date(),self.data.close[0]))\n",
    "                self.order = self.buy(size=100) # 以下一日开盘价买入100股\n",
    "        # # 10日均线下穿5日均线，卖出\n",
    "        elif self.crossover < 0:\n",
    "            print('{} Send Sell, close {}'.format(self.data.datetime.date(),self.data.close[0]))\n",
    "            self.order = self.close() # 平仓，以下一日开盘价卖出\n",
    "    \n",
    "    def notify_order(self, order):\n",
    "        if order.status != order.Completed:\n",
    "            return\n",
    "        self.order = None\n",
    "        print('{} {} Executed at price {}'.format(\n",
    "            bt.num2date(order.executed.dt).date(),\n",
    "            'Buy' * order.isbuy() or 'Sell', order.executed.price))        \n",
    "\n",
    "    \n",
    "# 实例化大脑\n",
    "cerebro5= bt.Cerebro()\n",
    "# 设置初始资金\n",
    "cerebro5.broker.set_cash(1000000000000)\n",
    "# 当日下单，当日收盘价成交\n",
    "cerebro5.broker.set_coc(True)\n",
    "# 加载数据\n",
    "datafeed1 = bt.feeds.PandasData(dataname=data1, fromdate=datetime.datetime(2019,1,2), todate=datetime.datetime(2021,1,28))\n",
    "cerebro5.adddata(datafeed1, name='600466.SH')\n",
    "# 添加策略\n",
    "cerebro5.addstrategy(TestStrategy)            \n",
    "# 启动回测\n",
    "result = cerebro5.run()  "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.5"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
